ora 00979 not a group by expression in oracle 19c

Solutions on MaxInterview for ora 00979 not a group by expression in oracle 19c by the best coders in the world

showing results for - "ora 00979 not a group by expression in oracle 19c"
Sirine
30 Nov 2017
1SELECT a, b, sum(c) FROM my_table GROUP BY a;		-- Error
2SELECT a, b, sum(c) FROM my_table GROUP BY a, b;	-- OK, all expressions there
3-- CASE WHEN statement, for example:
4SELECT a, CASE WHEN b=1 THEN 'Ok' ELSE 'Ko' END AS r, sum(c) 
5FROM my_table
6GROUP BY a, CASE WHEN b=1 THEN 'Ok' ELSE 'Ko' END;		-- No alias name (r)
similar questions
error 3a column 22hourly visitors hour 22 must appear in the group by clause or be used in an aggregate functiongroup by time oracle sqlerror code 3a 1055 expression 232 of select list is not in group by clause and contains nonaggregated column 27mydb term year 27 which is not functionally dependent on columns in group by clause 3b this is incompatible with sql mode 3donly full group bysql group by having clausesql sum with group by left join oracle queryerror code 3a 1055 expression 231 of order by clause is not in group by clause and contains nonaggregated column 5c 5c which is not functionally dependent on columns in group by clause 3b this is incompatible with sql mode 3donly full group byerror expression select list not group by nonaggregated column 2fgroup functions in sqlf select list is not in group by clause and contains nonaggregated column 27safir erp online ro rft2020 leave requests end at 27 which is not functionally dependent on columns in group by clause 3b this is incompatible with sql mode 3donly full group by on linoracle sql group by date yeargroup by clause 3b this is incompatiexpression number 1 of select list is not in group by clauseelect list is not in group by clause and contains nonaggregated column 27schogdsw db se name 27 which is not functionally dependent on columns in group by clause 3b this is incompatible with sql mode 3donly full group bygroup by sql not ordering issuespostgresql must appear in the group by clause or be used in an aggregate functiongroup by is always tied together with an aggrigate function in sqlsql group by error