SQL Tutorial

Scrollytelling: SQL, one step at a time

A finished query shows the answer and hides the steps that produced it. Each diagram here pins a small table in place and changes it as you scroll, one step per card: rows fade when a clause removes them, groups take a color, and a NULL shows up as a dark cell. Every one is built around a question learners ask when a query returns something they did not expect.

There are 19 diagrams across the 7 Examples pages. Each link below opens its diagram in place, next to the runnable examples that use the same command. Use Copy link to share one.

Selection

From Selection Techniques

Filtering

From Filtering Techniques

Aggregating

From Aggregating Techniques

Sorting and Grouping

From Sorting and Grouping Techniques

Transforming

From Transforming Techniques

Joining

From Joining Techniques

Going Further

From Going Further