v103 Oct 2026abhydesai4 min 58 sec037acd5
First published version.
0 views0 likes on this version
The time-series family of SQL interview prompts, on one small orders table: a running total as a window SUM, where same-day rows share a total under the default RANGE frame until a tiebreaker is added; month-over-month change, where the first move is changing the grain in a CTE before LAG; and what happens when a month has no rows. The video closes on the cheat sheet for all four families: the family, its tell, and its construct.
You'll review how to:
For engineers who know window functions and CTEs. The cheat sheet is the series' one-card summary.
037acd5First published version.