Re: We are not following the spec for HAVING without GROUP BY - Mailing list pgsql-hackers

From johnnnnnn
Subject Re: We are not following the spec for HAVING without GROUP BY
Date
Msg-id 20050310200128.GA32629@performics.com
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
On Thu, Mar 10, 2005 at 12:44:50PM -0500, Tom Lane wrote:
> Would those of you with access to other DBMSes try this:

DB2/LINUX 8.1.6

> create table tab (col integer);
> select 1 from tab having 1=0;

1          
-----------
 0 record(s) selected.


> select 1 from tab having 1=1;

1          
-----------         1
 1 record(s) selected.


> insert into tab values(1);
> insert into tab values(2);
> select 1 from tab having 1=0;

1          
-----------
 0 record(s) selected.

> select 1 from tab having 1=1;

1          
-----------         1
 1 record(s) selected.


-johnnnnnnnn


pgsql-hackers by date:

Previous
From: Adrian Nida
Date:
Subject: PostgreSQL pam ldap document
Next
From: Jaime Casanova
Date:
Subject: Re: We are not following the spec for HAVING without GROUP BY