1. When building a query to show ranking, running totals, and MoM changes, what tool is best to structure the query?
- Chained CTEs to compute aggregates first, rank next, and calculate offsets last.
- Single giant nested subquery in the WHERE clause.
- Multiple separate views.
- Standard GROUP BY without windows.
Hint: CTEs provide a readable pipeline to calculate steps sequentially (aggregating first, then applying window ranks and offsets).