Re: division by zero issue

Поиск
Список
Период
Сортировка
От David Fetter
Тема Re: division by zero issue
Дата
Msg-id 20040915175434.GC24930@fetter.org
обсуждение исходный текст
Ответ на Re: division by zero issue  (Greg Donald <destiney@gmail.com>)
Ответы Re: division by zero issue  (Chester Kustarz <chester@arbor.net>)
Список pgsql-general
On Wed, Sep 15, 2004 at 12:23:55PM -0500, Greg Donald wrote:
> On Wed, 15 Sep 2004 12:55:24 -0400, Jean-Luc Lachance
> <jllachan@sympatico.ca> wrote:
> > Add :
> >
> > AND count(user_tasks.task_id) > 0 in the where clause.
>
> I get the error:
> aggregates not allowed in WHERE clause

HAVING count(user_tasks.task_id) > 0

I know it's a little weird to have WHERE for non-aggregate and HAVING
for aggregates, but that's the SQL standard...

Cheers,
D
--
David Fetter david@fetter.org http://fetter.org/
phone: +1 510 893 6100   mobile: +1 415 235 3778

Remember to vote!

В списке pgsql-general по дате отправления:

Предыдущее
От: Vivek Khera
Дата:
Сообщение: Re: disk performance benchmarks
Следующее
От: John Sidney-Woollett
Дата:
Сообщение: Re: psql + autocommit