Thanks to everyone for your answers. It was very helpful! I ended up
doing it like Tom said.
Thanks again,
TL> The "inner join" syntax support in 7.0 is really just beta-quality
TL> code; it's got a few bugs. I'd suggest writing the query without
TL> using inner join syntax, ie plain old
TL> SELECT ... FROM a,b WHERE a.x = b.x;
TL> JOIN syntax will work a lot better in 7.1.
TL> regards, tom lane
--
Saludos,
Romina N. Tulisi mailto:romina@spcom.com.ar
Programmer
Soluciones Punto Com S.A.
http://www.spcom.com.ar