Diego wrote: > Why don´t work in 8.1? Because it is violating the SQL standard and 8.1 is stricter in that regard. > ERROR: missing FROM-clause entry for table "tabpes" So add that table to the FROM clause. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match