SYMPTOM:
In Strategy 9.4.x, an ORA-00979 error occurs when a case statement is used in the Group-by, while the Oracle native driver does not throw the error as shown in the image below:

Error: SQL Generation Complete QueryEngine encountered error: Execute Query failed. Error type: Odbc error. Odbc operation attempted: SQLExecDirect. [HY000:979: on SQLHANDLE] [Strategy][ODBC Oracle Wire Protocol driver][Oracle]ORA-00979: not a GROUP BY expression Connection String: DSN=mstr2;UID=MSTR2;HOST=localhost;PORT=1521;SID=XE;. SQL Statement: selectcase when a11.SEGMENT_CD is null or a11.SEGMENT_CD = '' then n' ' else a11.SEGMENT_CD end CustCol_1, sum(a11.COST) WJXBFS1 from F58AW080 a11 where a11.STATUS_CD = '2' group by case when a11.SEGMENT_CD is null or a11.SEGMENT_CD = '' then n' ' else a11.SEGMENT_CD end.. Error in Process method of Component: QueryEngineServer, Project NewProject, Job 1149, Error Code= -2147212544.
ACTION:
The error is not thrown by setting the hidden connect option TreatEmptyAsNull to "0".
Add TreatEmptyAsNull=0 in the field for "Extended Options" under the Advance tab of DSN as shown in the image below:
