Re: Aggregates not allowed in WHERE clause?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Aggregates not allowed in WHERE clause?
Дата
Msg-id 19812.1103174269@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Aggregates not allowed in WHERE clause?  (Frans <fransgunawan@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Ron Peterson
Дата:
Сообщение: Re: bytea internal encoding
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: bytea internal encoding