Advertisement
dragonbs

Sales Employees

Sep 28th, 2023
948
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.21 KB | None | 0 0
  1. SELECT e.[EmployeeID], e.[FirstName], e.[LastName], d.[Name] AS [DepartmentName]
  2. FROM [Employees] e
  3. JOIN [Departments] d ON e.[DepartmentID] = d.[DepartmentID]
  4. WHERE d.[Name] = 'Sales'
  5. ORDER BY e.[EmployeeID]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement