-
-
Save parzibyte/989a17ea8b58c0bf3942ed3b44f24417 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select e.BusinessEntityID, e.*, | |
d.Name | |
from HumanResources.Employee e | |
inner join | |
HumanResources.EmployeeDepartmentHistory h | |
on e.BusinessEntityID = h.BusinessEntityID | |
inner join HumanResources.Department d | |
on d.DepartmentID = h.DepartmentID | |
and h.EndDate is null | |
and d.Name in ('Quality Assurance', 'Production'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment