Re: Aggregates not allowed in WHERE clause? - Mailing list pgsql-general

From Tom Lane
Subject Re: Aggregates not allowed in WHERE clause?
Date
Msg-id 19812.1103174269@sss.pgh.pa.us
Whole thread Raw
In response to Aggregates not allowed in WHERE clause?  (Frans <fransgunawan@gmail.com>)
List pgsql-general
Frans <fransgunawan@gmail.com> writes:
> I try to use : select name, sum(quantity) from info where
> sum(quantity)>20 group by name;
> This yields the message: 'Aggregates not allowed in WHERE clause'.

> Can somebody help me here....

See
http://www.postgresql.org/docs/7.4/static/tutorial-agg.html
particularly the next-to-last paragraph.

            regards, tom lane

pgsql-general by date:

Previous
From: Ron Peterson
Date:
Subject: Re: bytea internal encoding
Next
From: Michael Fuhr
Date:
Subject: Re: bytea internal encoding