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

From Dann Corbit
Subject Re: We are not following the spec for HAVING without GROUP
Date
Msg-id D425483C2C5C9F49B5B7A41F894415470559CD@postal.corporate.connx.com
Whole thread Raw
List pgsql-hackers
-----Original Message-----
From: pgsql-hackers-owner@postgresql.org
[mailto:pgsql-hackers-owner@postgresql.org] 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 <chriskl@familyhealth.com.au> 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
listnot valid.        


pgsql-hackers by date:

Previous
From: Christopher Kings-Lynne
Date:
Subject: Re: Information schema tweak?
Next
From: Christopher Kings-Lynne
Date:
Subject: NIST Test Suite