Icon View Incident Report

Serious Serious
Reported By: John Hay
Reported On: 4/13/2010
For: Version 2.03 Build 9
# 3184 Using IN Operator with Sub-Query Containing Only Aggregate Function Causes Error

The following query produces the error:

ElevateDB Error #700 An error was found in the statement at line 0 and column 0 (Invalid expression "MIN of Id" found, ORDER BY clause not allowed)

(SELECT DeleteId FROM (SELECT min(Id) AS DeleteId FROM Table
GROUP BY Field1,Field2) t1)

Comments Comments
The problem was caused by an internal rewrite of the ORDER BY clause done by the query compiler in order to speed up the IN operation.

Resolution Resolution
Fixed Problem on 4/14/2010 in version 2.03 build 10

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 VCL Client-Server
ElevateDB VCL Client-Server with Source
ElevateDB VCL Standard
ElevateDB VCL Standard with Source
ElevateDB VCL Trial