Oracle/PLSQL: ORA-00979 Error
Error: |
ORA-00979: not a GROUP BY expression |
Cause: |
You tried to execute a SELECT statement that included a GROUP BY function (ie: MIN, MAX, SUM, COUNT) and an expression in the SELECT list that was not in the GROUP BY clause. |
Action: |
The options to resolve this Oracle error are:
For example, if you had tried to execute the following SELECT statement:
You would receive the following error message:
You could correct this by including company in the GROUP BY clause as follows:
|
