How to get Department wise number of employee.

Emid EmpName salary DepatiD
1 A 1000 1
2 B 1250 2
3 C 1600 3
4 D 1800 2
5 E 1980 3


Select COUNT(DepatiD) as 'No of Emp',DepatiD  from mstEmp1

group by DepatiD

No of Emp           DepatiD
1                          1
2                          2
2                          3

Comments

Popular posts from this blog

Validate Mobile Number with 10 Digits in ASP.Net