Advertisement
dragonbs

Employees Hired After

Sep 28th, 2023
933
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.25 KB | None | 0 0
  1. SELECT e.[FirstName], e.[LastName], e.[HireDate], d.[Name] AS [DeptName]
  2. FROM [Employees] e
  3. JOIN [Departments] d ON e.[DepartmentID] = d.[DepartmentID]
  4. WHERE e.[HireDate] > '1999-01-01' AND (d.[Name] = 'Sales' OR d.[Name] = 'Finance')
  5. ORDER BY e.[HireDate]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement