Icon View Incident Report

Serious Serious
Reported By: Richard Harding
Reported On: 11/17/2010
For: Version 2.04 Build 4
# 3350 Cannot Use HAVING Clause Without GROUP BY in SELECT Statement

I tried executing a SELECT statement that has a HAVING clause but no GROUP BY clause. I received an error that the GROUP BY clause is missing.

My understanding is that you should be able to have a HAVING clause without the GROUP BY clause - the whole table is treated as 1 group.

SELECT AVG(x)  FROM Table1 AS T1 WHERE EXISTS
 (SELECT COUNT(*) FROM Table1 AS T2 WHERE <some condition> HAVING <conditions to do with COUNT>)



Resolution Resolution
Fixed Problem on 11/18/2010 in version 2.05 build 1


Products Affected Products Affected
ElevateDB Additional Software and Utilities
ElevateDB DAC Client-Server
ElevateDB DAC Client-Server with Source
ElevateDB DAC Standard
ElevateDB DAC Standard with Source
ElevateDB DAC Trial
ElevateDB LCL Standard with Source
ElevateDB PHP Standard
ElevateDB PHP Standard with Source
ElevateDB PHP Trial
ElevateDB VCL Client-Server
ElevateDB VCL Client-Server with Source
ElevateDB VCL Standard
ElevateDB VCL Standard with Source
ElevateDB VCL Trial

Image