/ config

Settings

Theme
Language

Lesson text

Pick a typeface and size that make long lessons comfortable to read.
Font
Size
S

Code text

consumer.subscribe(topics)
Font
Size
XS

Progress

Free readingUnlock every lesson and hide progress
ResourcesGitHub repositorycourse source code→
/ contents

Course outline

0 / 63 (0%)
    1. 01Window functions: the basics25m
    2. 02Ranking and top-N per group25m
    3. 03lag/lead and window frames25m
    4. 04Recursive CTEs25m
    5. 05LATERAL joins: top-N and the N+1 killer25m
    6. 06GROUPING SETS, ROLLUP, and CUBE20m
HomeGitHub repository
09/ 11·6 lessons·2 h 25 min

Analytics

Analytics right inside SQL: window functions (running total, ranking, top-N per group), lag/lead and frames (day-over-day, moving average), recursive CTEs (a category tree), LATERAL joins (top-3 per customer — the N+1 killer), and grouping sets/rollup/cube.

Start module→Continue · Window functions: the basics→Reread module→Next module →
Progress0 / 6
0%
Lessons
6
Duration
2 h 25 min
Stack
Go
/ lessons

Lessons

6 lessons · 2 h 25 min
  1. 01✓Window functions: the basics↳ continue from here#window-functions#partition-by#running-total25m→
  2. 02✓Ranking and top-N per group↳ continue from here#window-functions#row-number#rank25m→
  3. 03✓lag/lead and window frames↳ continue from here#window-functions#lag-lead#frames25m→
  4. 04✓Recursive CTEs↳ continue from here#recursive-cte#tree#cycle25m→
  5. 05✓LATERAL joins: top-N and the N+1 killer↳ continue from here#lateral#top-n#n-plus-125m→
  6. 06✓GROUPING SETS, ROLLUP, and CUBE↳ continue from here#grouping-sets#rollup#cube20m→
← Previous moduleJSONB, arrays, and searchNext module →Writes