SQL
SELECT, WHERE, JOIN, GROUP BY, then window functions, views and your own tables.
7 free lessons.
40 lessons, 7 free
0 of 40 lessons done
SQL COMPLETE
You can now:
- 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
Practise
The course, unit by unit
Part 1: Foundations
1 unit, 7 lessons
Part 1: Foundations
1 unit, 7 lessons
Part 2: Core
1 unit, 11 lessons
Part 2: Core
1 unit, 11 lessons
-
Unit 2: Core
4 hr 45 minLocked
- NULL and missing values in SQL, locked
- SQL COUNT, SUM and AVG, locked
- SQL GROUP BY and HAVING, locked
- SQL CASE WHEN, locked
- SQL checkpoint: summing upCheckpoint, locked
- SQL JOIN: combining two tables, locked
- SQL LEFT JOIN, locked
- Joining three or more tables in SQL, locked
- SQL self join, locked
- SQL checkpoint: joinsCheckpoint, locked
- SQL INSERT, UPDATE and DELETE, locked
- Build it: Playlist stats30 min, locked
More to build 1
Part 3: Deeper
2 units, 22 lessons
Part 3: Deeper
2 units, 22 lessons
-
Unit 3: Advanced
7 hr 45 minLocked
- SQL subqueries, locked
- SQL EXISTS and correlated subqueries, locked
- SQL WITH and common table expressions (CTEs), locked
- SQL UNION and UNION ALL, locked
- SQL window functions: ranking rows, locked
- SQL running totals and LAG, locked
- SQL checkpoint: the film siteCheckpoint, locked
- SQL transactions, locked
- SQL CREATE TABLE and constraints, locked
- Database normalisation, locked
- SQL views, locked
- SQL injection, locked
- SQL indexes and query plans, locked
- SQL with an AI assistant, locked
- SQL bug huntBug hunt, locked
- SQL final challenge: the film databaseFinal challenge, locked
- Build it: Game library2.5 hours, locked
-
Unit 4: Real-world analysis
2 hr 35 minLocked
Projects
Lessons teach one idea at a time. Projects glue them together: a brief, a few milestones and a starter file.
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 40 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 17 hr 50 min of lessons in 4 units. Lessons take 20 to 45 minutes each.