Advertisement
dragonbs

Employee Manager

Sep 28th, 2023
1,426
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.23 KB | None | 0 0
  1. SELECT e.[EmployeeID], e.[FirstName], e.[ManagerID], em.[FirstName] AS [ManagerName]
  2. FROM [Employees] e
  3. JOIN [Employees] em ON e.[ManagerID] = em.[EmployeeID]
  4. WHERE e.[ManagerID] = 3 OR e.[ManagerID] = 7
  5. ORDER BY e.[EmployeeID]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement