Re: division by zero issue - Mailing list pgsql-general

From David Fetter
Subject Re: division by zero issue
Date
Msg-id 20040915175434.GC24930@fetter.org
Whole thread Raw
In response to Re: division by zero issue  (Greg Donald <destiney@gmail.com>)
Responses Re: division by zero issue  (Chester Kustarz <chester@arbor.net>)
List 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 by date:

Previous
From: Vivek Khera
Date:
Subject: Re: disk performance benchmarks
Next
From: John Sidney-Woollett
Date:
Subject: Re: psql + autocommit