Query Receives ORA-00979: 'not a GROUP BY expression' on 126.96.36.199 and Above, but Works on Versions Less Than 188.8.131.52
(Doc ID 1680041.1)
Last updated on AUGUST 04, 2018
Applies to:Oracle Database - Enterprise Edition - Version 184.108.40.206.0 and later
Information in this document applies to any platform.
- ORA-979 is raised because inline sub-query column is referenced in the SELECT list but same is not listed in the GROUP BY clause:
Select a.sale_code, sum(sale_amount)/b.days from sales a ,
(select (sysdate - to_date('01-Jan-2014')) days from dual) b
group by a.sale_code;
ORA-979 not a GROUP BY expression
The error occurs after upgrading to 11.2.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document