"Robert B. Easter" <[EMAIL PROTECTED]> writes: > The query I did was bad syntax I guess. No, it's just a bug. PG accepts GROUP BY items that are references to output columns, cf. http://www.postgresql.org/devel-corner/docs/postgres/sql-select.htm Looks like it gets confused when the grouped-by item contains a subselect, however. regards, tom lane
- Sv: [SQL] how to build this query ??? Please help !!! Nikolaj Lundsgaard
- Re: Sv: [SQL] how to build this query ??? Please h... Jens Hartwig
- Re: Sv: [SQL] how to build this query ??? Plea... Tod McQuillin
- Re: Sv: [SQL] how to build this query ??? ... Tom Lane
- Re: Sv: [SQL] how to build this query ??? ... Jens Hartwig
- Re: Sv: [SQL] how to build this query ... Tom Lane
- Re: Sv: [SQL] how to build this q... Jens Hartwig
- Re: Sv: [SQL] how to build th... Tod McQuillin
- Re: Sv: [SQL] how to build th... Robert B. Easter
- Re: Sv: [SQL] how to build th... Robert B. Easter
- Re: Sv: [SQL] how to build th... Tom Lane
- Re: Sv: [SQL] how to build th... Tom Lane