← Learn
Learn · SQL

SQL from zero

Ten short lessons for your first time with a database: what tables, rows and columns are, your first SELECT, picking rows with WHERE, sorting, missing values, searching text, sums, labels with CASE, and counts and totals. You write every query yourself on a small shop’s database that runs in your browser, and it’s checked as you type.

Part of the Data analyst (SQL) path.

More info

How it works

Each lesson is a short read with real queries and what they return, then practice questions. Most have you write a query: it runs as you type on a small shop database in your browser (SQLite), shows what it returns, and is marked right as soon as it returns the same rows as the answer. Any query that gets there counts, so there’s more than one right way. Some questions practise one idea and ask you to use it, like a JOIN or a window function. You can try again as often as you like; “Show the result to aim for” shows the rows you’re after, and after two misses there’s a button to show a query that works.

What do I need to know first?

Nothing at all. No coding, no maths beyond adding up and no software to install: the database runs in this page. What you learn works in PostgreSQL, MySQL, SQL Server and the data warehouses, and the lessons say where they differ.

The other AI and data engineering courses

Where is my progress saved? In this browser, like the rest of the site. Nothing to sign up for.