Re: HAVING ... - Mailing list pgsql-hackers

From Marc G. Fournier
Subject Re: HAVING ...
Date
Msg-id 20050420121008.Y76866@ganymede.hub.org
Whole thread Raw
In response to Re: HAVING ...  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Wed, 20 Apr 2005, Tom Lane wrote:

> "Marc G. Fournier" <scrappy@postgresql.org> writes:
>> Is there a reason (other then it hasn't been implemented yet?) that the
>> following couldn't work?
>
>>    SELECT id,count(id) AS cnt
>>      FROM table
>>     WHERE id IN ( 1,2,3,4,5)
>> GROUP BY id
>>    HAVING cnt = 2;
>
> It's contrary to the SQL spec, for one thing ...

Of course it is *sigh*

Thanks ...

----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email: scrappy@hub.org           Yahoo!: yscrappy              ICQ: 7615664


pgsql-hackers by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: inet increment w/ int8
Next
From: Josh Berkus
Date:
Subject: Re: [GENERAL] Idea for the statistics collector