Re: [BUGS] We are not following the spec for HAVING without - Mailing list pgsql-hackers

From Gary Doades
Subject Re: [BUGS] We are not following the spec for HAVING without
Date
Msg-id 42309C30.7060107@gpdnet.co.uk
Whole thread Raw
In response to Re: We are not following the spec for HAVING without GROUP BY  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> 
> Would those of you with access to other DBMSes try this:
> 
> create table tab (col integer);
> select 1 from tab having 1=0;
> select 1 from tab having 1=1;
> insert into tab values(1);
> insert into tab values(2);
> select 1 from tab having 1=0;
> select 1 from tab having 1=1;
> 
> I claim that a SQL-conformant database will return 0, 1, 0, and 1 rows

MS SQL Server 2000 returns 0, 1, 0 and 1 rows correctly.

Cheers,
Gary.


pgsql-hackers by date:

Previous
From: Mark Shewmaker
Date:
Subject: Re: [BUGS] We are not following the spec for HAVING without GROUP BY
Next
From: John R Pierce
Date:
Subject: Re: [BUGS] We are not following the spec for HAVING without GROUP