Re: division by zero issue

From: David Fetter <david(at)fetter(dot)org>
To: Greg Donald <destiney(at)gmail(dot)com>
Cc: Jean-Luc Lachance <jllachan(at)sympatico(dot)ca>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: division by zero issue
Date: 2004-09-15 17:54:34
Message-ID: 20040915175434.GC24930@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)sympatico(dot)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(at)fetter(dot)org http://fetter.org/
phone: +1 510 893 6100 mobile: +1 415 235 3778

Remember to vote!

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron St-Pierre 2004-09-15 17:55:21 Re: [GENERAL] disk performance benchmarks
Previous Message Vivek Khera 2004-09-15 17:53:18 Re: disk performance benchmarks