SELECT FirstName + ' ' + LastName AS Employee, HireDate
FROM Employees
WHERE DATEPART(yyyy,HireDate) = 1994
SELECT FirstName + ' ' + LastName AS Employee, HireDate
FROM Employees
WHERE DATEPART(MM,HireDate) = 10
The query above returns the records of employees who were hired on October
No comments:
Post a Comment