Search notes:

ORA-00937: not a single-group group function

Using an aggregate function and at least one non aggregated column without a group by clause causes the error ORA-00937: not a single-group group function to be thrown. (but compare with ORA-00979: not a GROUP BY expression).
Test table:
create table tq84_tab (
   num   number,
   txt   varchar2(10)
);
The following statement throws ORA-00937:
select
   sum(num)   sum_num,
   txt
from
   tq84_tab;
The following query is OK, though:
select
   sum(num)   sum_num,
   txt
from
   tq84_tab
group by
   txt;
Cleaning up:
drop table tq84_tab;

See also

Other Oracle error messages

Index