I have the following code which throws an exception
Ora-00979: Not a group by expression.
Even if I remove the group by
clause it still gives error
ORA-00937: not a single-group group function.
I am new in this field and do not have enough knowledge about joins etc. I'll appreciate if someone please help me with the following query.
select sDateTime AS Sale_Date, SUM(Amount) AS Sale, SerName
FROM SALES natural join sales_Description natural join Services
where ((sDateTime >= to_date('2015-01-01','yyyy-MM-dd'))
and (sDateTime <= to_date('2015-01-09','yyyy-MM-dd')))
GROUP BY to_char(sDateTime,'yyyy-MM-dd')