SQL ยท Tutorial

SQL Tutorial

A complete walk-through of SQL โ€” 4 tiers, 12 chapters. Each chapter builds on the last and uses the same sample schema (users, orders, products, order_items). Start at Chapter 01 or jump to what you need.

Tier 1 ยท Foundations BEGINNER
Tier 2 ยท Working with Data INTERMEDIATE
Tier 3 ยท Schema & Design ADVANCED
Tier 4 ยท Production & Advanced EXPERT
Recommended path (~4 weeks): Week 1: Tier 1 โ€” get comfortable reading and filtering. Week 2: Tier 2 โ€” aggregation, joins, and writing data with transactions. Week 3: Tier 3 โ€” schema design, indexes, and CTEs. Week 4: Tier 4 โ€” window functions, advanced patterns, and the production checklist.

Interview-critical chapters (if short on time): 02 (WHERE), 04 (Aggregation), 05 (Joins), 09 (CTEs), 10 (Window Functions).