Advertisement
apl-mhd

Employees coun under manager

Jul 21st, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.15 KB | None | 0 0
  1. SELECT man.FIRST_NAME, COUNT(*)
  2.  
  3. FROM employees e JOIN employees man ON e.MANAGER_ID = man.EMPLOYEE_ID
  4.  
  5. GROUP BY man.FIRST_NAME
  6.  
  7. ORDER BY count(*) ASC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement