medium10 pts · first answer countswindow-functionssql
Year-over-year with LAG 12
Monthly sales use LAG(sales, 12) OVER (PARTITION BY store ORDER BY month) for year-over-year. A new store has no rows for its two closed months. What is the risk?
Discussion 0
Join free to post in the discussion.