-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom Lane
Sent: Wednesday, March 09, 2005 8:45 PM
To: Christopher Kings-Lynne
Cc: Kevin Brown; pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] We are not following the spec for HAVING without
GROUP 

Christopher Kings-Lynne <[EMAIL PROTECTED]> writes:
>>> Comments?  Can anyone confirm whether DB2 or other databases allow
>>> ungrouped column references with HAVING?

DB2 does not like it.

This runs and returns data:
> SELECT INFO5FILES.APAMT.DEBAMT FROM INFO5FILES.APAMT                
  SELECT statement run complete.                                      
 
This fails to prepare:
> SELECT INFO5FILES.APAMT.DEBAMT FROM INFO5FILES.APAMT having 1 > 2   
  Column DEBAMT or function specified in SELECT list not valid.       

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Reply via email to