Instruction
Good job! Let's do a similar exercise.
Exercise
Find the number of active customers in quarterly registration cohorts. Active customers are customers who've made a purchase in the last 14 days. Show three columns: Year, Quarter, and ActiveCustomers. Order the rows by year and quarter.
Stuck? Here's a hint!
Use the following WHERE clause:
WHERE DATEDIFF(Day, LastOrderDate, GETDATE()) < 14




