Hi,
I have a generic question about SUM and GROUP BY:
Suppose I have a table called test1. Now I have to return the following information:
test1.col1, test1.col2, sum(test.col3) group by col2 only
I write the following query but it doesn't work and returns the "ORA-00979: not a GROUP BY expression" error, any idea how to make it work?
select test1.col1, test1.col2, sum(test.col3) from test1
where test1.col2 not null
group by test1.col2
Thanks
