Re: Sv: how to build this query ??? Please help !!!

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Robert B(dot) Easter" <reaster(at)comptechnews(dot)com>
Cc: Jens Hartwig <jhartwig(at)debis(dot)com>, Tod McQuillin <devin(at)spamcop(dot)net>, Nikolaj Lundsgaard <Nikolaj(at)konfus(dot)dk>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Sv: how to build this query ??? Please help !!!
Date: 2001-01-08 23:54:31
Message-ID: 20178.978998071@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Robert B. Easter" <reaster(at)comptechnews(dot)com> 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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jie Liang 2001-01-09 01:16:24 hex number
Previous Message Robert B. Easter 2001-01-08 23:36:22 Re: Sv: how to build this query ??? Please help !!!