Advertisement
Guest User

manager

a guest
Oct 13th, 2016
819
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.23 KB | None | 0 0
  1. SELECT
  2. e.employee_id,
  3. e.first_name,
  4. m.employee_id AS manager_id,
  5. m.first_name AS manager_name
  6.     FROM employees AS e
  7.         JOIN employees AS m
  8.             ON m.employee_id = e.manager_id
  9.         WHERE e.manager_id IN (3,7)
  10.     ORDER BY e.employee_id
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement