Re: Sv: how to build this query ??? Please help !!! - Mailing list pgsql-sql

From Tom Lane
Subject Re: Sv: how to build this query ??? Please help !!!
Date
Msg-id 20178.978998071@sss.pgh.pa.us
Whole thread Raw
In response to Re: Sv: how to build this query ??? Please help !!!  ("Robert B. Easter" <reaster@comptechnews.com>)
List pgsql-sql
"Robert B. Easter" <reaster@comptechnews.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


pgsql-sql by date:

Previous
From: "Robert B. Easter"
Date:
Subject: Re: Sv: how to build this query ??? Please help !!!
Next
From: Jie Liang
Date:
Subject: hex number