1 year ago
21 lines562 B
Lesson 7: Window functions
Window functions comes up in almost every real SQL project. We start with the why, then write code together.
Read the full lesson: https://glibcode.net/courses/sql-essentials/lessons/7
Files
window.sql: RANK and running totals with window functions
Run it
sqlite3 shop.db < ../../setup/schema.sql
sqlite3 shop.db < ../../setup/seed.sql
sqlite3 shop.db < window.sql
Exercises
See exercises.md. Ask in the forum once you've tried.