SQL from Scratch
Don’t memorize SQL. Learn to think in queries.
A story-driven, interactive SQL course where Harry asks the questions, Hermione explains the ideas, and you write the queries.
The learning loop
- 01Ask
- 02Understand
- 03Write
- 04Run
- 05Solve
Meet the cast
Harry asks. Hermione explains. You write the query.
Harry
Wait… why can't we just use WHERE here?
Hermione
Because WHERE filters individual rows. You're asking a question about the group.
Write. Run. Observe.
A real SQL playground, right in the lesson.
The journey
From your first SELECT to real-world analytical SQL
Eleven chapters, organized around questions Harry actually needs to answer — not a list of syntax to memorize.
Practice
Every concept comes with a challenge.
The Second Highest Salary
mediumFind the second highest salary in the employees table. If there is no second highest salary, return NULL.
subqueryaggregation
The idea
You don’t learn SQL by reading SQL. You learn by asking questions, forming hypotheses, writing queries, running them, seeing what happened, and trying again.