Advertisement
apl-mhd

assignemnt 28

Aug 10th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.24 KB | None | 0 0
  1. SELECT e1.FIRST_NAME
  2. FROM employees e1
  3. JOIN employees e2 ON
  4. e2.EMPLOYEE_ID = e1.MANAGER_ID
  5. JOIN departments d ON d.DEPARTMENT_ID = e2.DEPARTMENT_ID
  6. JOIN locations ON d.LOCATION_ID = locations.LOCATION_ID
  7.  
  8. WHERE locations.COUNTRY_ID = 'US'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement