December 29, 2017

find employees with birth date in the month of May and birth date lies in 7 to 21st of the month

using the Adventure-works database 

Get the list of employees whose birth date lies in 7th to 21st in the month of May
Data:





Desired query:

-- Get the list of Employees where birthdate lies in 7 to 21 in the month of May
Select NationalIDNumber, BirthDate
from HumanResources.Employee
where MONTH(birthdate) = 5
and day(birthdate) >= 7 and DAY(birthdate) <= 21
order by day(BirthDate) asc




1 comment:

  1. This blog gives very important info about bi Tools Thanks for sharing, learn more about BI Tools like Tableau Online Course

    ReplyDelete