Day 14 #30DQUERY

15-05-2020 The Challenge

DAY 14 
Database: AdventureWorksDW2017 
Entity: DimCustomer 
Instructions: 
Select [CustomerKey], [EmailAddress], [EnglishOccupation] and [Yearlylncome] for the customers 
whose [BirthDate] was not on a weekend (Saturday, Sunday).

Birthday not in the weekend

My route

  • Build the filter on the BirthDate column, I used Date.DayOfWeekName first, but that was not folding, so I fell back to Date.DayOfWeek
  • Needed to find out what number Saturday (1) and Sunday (7) was.
  • Removed other columns
  • Put the columns in the requested order.

My result