How to Avoid Group By
AJ.MMay 17 2011 — edited May 18 2011Hello,
My Database Version - 10g
I have one Query
--------------------------------------------------------------------------------------
SELECT 'Emp Count' TYPE,
max(decode(emp_location,'Mumbai',COUNT(*))) Mumbai ,
max(decode (emp_location,'Kota',COUNT(*))) Kota,
max(decode(emp_location,'Delhi',COUNT('Delhi'))) Delhi,
max(decode(emp_location,'Gurgaon',COUNT(*)))Gurgaon FROM emp_dtls
group by emp_location
--------------------------------------------------------------------------------------
This is working fi9 ..but how can i write this without using Group by ...