Q. List the count of employees grouped by deptno. (table EMPL)


Consider  this table --


You can understand by seeing this video ---




 
Answer=

SELECT Deptno , COUNT(*)  FROM EMPL GROUP BY Deptno ;


Deptno
COUNT(*)
10
3
20
5
30
6

2 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post