How to get the count of records

Jan 9 2014 7:46 AM
Hi,
 
My table of records are like below 
 
 EMPID Name Department
 1AAAAA  1
 2BBBBB  2
 3CCCCC 2
 4DDDDD 3
 5EEEEEE 3
 
and I need to show them like below.
 
 DepartmentCount 
 1
 2
 32
 
Can somebody help on this with the query,
 
--Thanks in advance,
Murali krishna 

Answers (4)