Skip to content
Advertisement

i got error ORA-00979: not a GROUP BY expression

I got Error ORA-00979 with the following query:

Is any wrong with query?

Advertisement

Answer

You are using GROUPING(d.department_id) but department_id is not in the GROUP BY clause.

You could add it to the GROUP BY clause:

db<>fiddle here

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement