Concept map: Window functions
Prerequisites (two levels) and direct dependents of Window functions. Show everything
- 2prerequisites shown
- 1direct dependents
- 2lessons use it
Insights 9
- Specify ROWS and a unique ORDER BY in running totals, because the default frame groups ties
- Densify dates before a ROWS-based rolling window, because "7 rows" is not "7 days" when days are missing
- Partition lag features by entity and shift them by the forecast horizon, not by one row
- Deduplicate on a business key and keep the latest version by update time, not with DISTINCT
- Spell out the window frame when you use LAST_VALUE or NTH_VALUE
- Choose ROW_NUMBER, RANK or DENSE_RANK by deciding what a tie should do
- Filter on a window function result in an outer query, because WHERE runs before windows
- Break ties explicitly when choosing the latest row per key
Projects 8
- Late deliveries and review scores in a marketplace: how much damage, and on which lanes?
- Where does a steel plant's electricity cost exposure concentrate? Load and power-factor profile
- Flagship: final bookings per departure from booking-curve snapshots
- Route-day passenger backtest and the capacity/price what-if: forecasts are not causal answers
- Coherent store, department and item forecasts with hierarchical reconciliation
- Day-ahead quarter-hour load with daily, weekly and annual seasonality
List view151 concepts
Day 1
Day 2
Day 3
Day 4
Day 5
Day 6
Day 7
Day 8
Day 9
Day 11
Day 12
Day 13
Day 14
Day 15
Day 16
Day 17
Day 18
Day 19
Day 21
Day 22
Day 23
Day 24
Day 25
Day 26
Day 27
Day 28
Day 29
Day 31
Day 32
Day 33
Day 34
Day 35
Day 36
Day 37
Day 38
Day 39
Day 40
Day 41
Day 42
Day 43
Day 44
Day 45
Day 46
Day 47
Day 48
Day 49
Day 51
Day 52
Day 53
Day 54
Day 55
Day 58
Day 59
Day 60