-----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.