Rolling week of takings — SQL
For every date with enough earlier history, report the sum over that span and its per-day average, sorted by date; empty when history is too short.
SQL · Hard
For every date with enough earlier history, report the sum over that span and its per-day average, sorted by date; empty when history is too short.
SQL · Hard