Created
July 11, 2020 12:09
Get employees for NorthWind2020
This file contains 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.EmployeeID, | |
E.TitleOfCourtesy, | |
E.LastName, | |
E.FirstName, | |
CT.ContactTitle, | |
CONVERT(VARCHAR, E.BirthDate, 1) AS BirthDate, | |
CONVERT(VARCHAR, E.HireDate, 1) AS HireDate, | |
E.Address AS Street, | |
E.City, | |
E.Region, | |
E.PostalCode, | |
E.CountryIdentifier, | |
C.Name AS CountryName, | |
E.HomePhone, | |
E.Extension, | |
E.Notes, | |
E.ReportsTo | |
FROM Employees AS E | |
INNER JOIN Countries AS C ON E.CountryIdentifier = C.CountryIdentifier | |
INNER JOIN ContactType AS CT ON E.ContactTypeIdentifier = CT.ContactTypeIdentifier; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment