SQL SQL In Depth
0%
Free & open source

SQL & database
internals, in depth.

Read it, watch it, visualize every table step, run real SQL in WebAssembly.

Start learning →
180
Topics
36
Simulators
18
Builds
36
Videos
720
Questions

Try it live

Logical Query Execution Pipeline (FROM → WHERE → SELECT → ORDER BY → LIMIT)
Clause Pipeline

Step through a multi-clause SQL query at the table level. Watch rows flow from the base table through predicate filtering, expression projection, sorting, and Top-N pagination.

Step 1 / 8
Custom Input:
Timeline

Invariant & State

Relation initialized with 6 tuples across schema (order_id, customer, status, total_cents, created_at) — preset: Paid Orders ≥ $120 Ordered by Total DESC LIMIT 3.
🔗 Live Pointer & State Transition Graph — Logical Query Execution Pipeline (FROM → WHERE → SELECT → ORDER BY → LIMIT) Active Pointer Jump/Transition Matched/Optimal
Tuple # 101:p… [0] 102:p… [1] 103:p… [2] 104:r… [3] 105:p… [4] 106:p… [5]
📋 Logical Query Execution Pipeline (FROM → WHERE → SELECT → ORDER BY → LIMIT) — Initial Relation State 6 row(s)
order_idcustomerstatustotal_centscreated_atState
101Ada Lovelacepaid185002026-03-01CURSOR START
102Alan Turingpending92002026-03-02
103Grace Hopperpaid340002026-03-02
104Edsger Dijkstrarefunded210002026-03-03
105Barbara Liskovpaid275002026-03-04
106Donald Knuthpaid129002026-03-05
[0]101:paidTuple #0
[1]102:pending
[2]103:paid
[3]104:refunded
[4]105:paid
[5]106:paid
Input Tuples
6
Columns
5
Preset Mode
orders
Pipeline Stage
1. Initial Scan
[Step 1] Initialized Logical Query Execution Pipeline (FROM → WHERE → SELECT → ORDER BY → LIMIT) (Paid Orders ≥ $120 Ordered by Total DESC LIMIT 3) with 6 base rows.
Open lesson →

In every lesson

Intuition first
Hand-picked videos
Table-level visualizers
Audio narration
Check yourself
WASM SQL in browser

18 from-scratch builds

Curriculum

Relational Foundations & Core Querying

Aggregations, Subqueries, CTEs & Window Functions

Data Modeling, Normalization & Schema Architecture

Indexing, Query Planner & Execution Engine

Transactions, Concurrency Control, MVCC & Storage Internals

Analytical Engines (OLAP), Distributed SQL & Production Operations

Start with the first lesson.

Start learning →