SQL FOR BUSINESS ANALYSTS · REFERENCE CARD
SQL for BAs: running totals, month-on-month change and streaks
Write a running total or a moving average, compare one month with the last using LAG, find days in a row, and say why the frame of a window should be spelled out.
Derived from SQL for BAs: running totals, month-on-month change and streaks. Every claim on this card is sourced on that page. All business analysis reference cards.