Advertisement
simonradev

Untitled

Sep 14th, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.26 KB | None | 0 0
  1. SELECT e.EmployeeID, e.FirstName,
  2.        p.Name
  3.  FROM Employees AS e
  4.  INNER JOIN EmployeesProjects AS ep
  5.  ON e.EmployeeID = ep.EmployeeID AND
  6.     e.EmployeeID = 24
  7.  LEFT OUTER JOIN Projects AS p
  8.  ON ep.ProjectID = p.ProjectID AND
  9.     DATEPART(YEAR, p.StartDate) < 2005
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement