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

From Mark Shewmaker
Subject Re: [BUGS] We are not following the spec for HAVING without GROUP
Date
Msg-id 1110432006.12946.2.camel@k9
Whole thread Raw
In response to We are not following the spec for HAVING without GROUP BY  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [BUGS] We are not following the spec for HAVING without GROUP
List pgsql-hackers
On Wed, 2005-03-09 at 21:21 -0500, Tom Lane wrote: 
> Comments?  Can anyone confirm whether DB2 or other databases allow
> ungrouped column references with HAVING?

In Sybase:
   1> select 2 as id, max(myfield) from mytable where 2=1   2> go    id    ----------- ----------              2 NULL
   (1 row affected)   1> select 2 as id, max(myfield) from mytable having 2=1   2> go    id    ----------- ----------
   (0 rows affected)

-- 
Mark Shewmaker
mark@primefactor.com



pgsql-hackers by date:

Previous
From: Gaetano Mendola
Date:
Subject: Re: One vacuum full is not enough.
Next
From: Christopher Browne
Date:
Subject: Re: One vacuum full is not enough.