Skip to content
Brainlag

SQL

SELECT, WHERE, JOIN, GROUP BY, then window functions, views and your own tables.

Foundations is free: 7 lessons.

39 lessons, 7 free

Practise

Review

All clear

Daily 5

Five quick questions from what you have learned.

Start Daily 5

The course, unit by unit

Part 1: Foundations

1 unit, 7 lessons

Part 2: Core

1 unit, 11 lessons

Part 3: Deeper

2 units, 21 lessons

Questions

What is the course about?

Ask data questions. SELECT, WHERE, JOIN, GROUP BY, then window functions, views and your own tables. Ask real data questions and see how apps remember things. It is for: beginner.

What is free?

7 of the 39 lessons.

Do I need to install anything?

No. Your code runs in the browser, in the editor beside each lesson.

Do I need an account?

No. Progress saves in this browser; sign in to keep it on every device.

What can I do by the end?
  • Answer real questions from a database on your own
  • Join, group and summarise data across several tables
  • Break hard questions into steps with CTEs and window functions
  • Design tables with keys, constraints, views and indexes
  • Change data safely with transactions
  • Find and fix queries that run and still give the wrong answer
How long does it take?

About 20 hr 45 min of lessons in 4 units. Lessons take 25 to 60 minutes each.