Advertisement
apl-mhd

US based employee

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