SpinTheMic
Pro

Interview practice question

Year-over-year comparison by week

Data Analyst · SQL for Analytics · Intermediate

Leadership wants this year's weekly sales compared with the same week last year. How do you build it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Aggregate by ISO year and week.
  • Self join or LAG over 52 weeks.
  • Align by ISO week; handle 53-week years.
  • Or align by day-of-year/holidays.
  • Show absolute and % change.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics