Advertisement
apl-mhd

minimum salary for a manager

Aug 1st, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.15 KB | None | 0 0
  1. SELECT e1.FIRST_NAME,  MIN(e2.SALARY), e2.FIRST_NAME
  2. FROM employees e1 JOIN employees e2
  3. ON e1.EMPLOYEE_ID = e2.MANAGER_ID
  4. GROUP BY e1.EMPLOYEE_ID;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement