Learn SQL by doing

Learn SQL by doing: write real queries against a real database, with instant feedback. Every lesson runs in your browser, on the same small bakery database.

0 of 13 lessons completed

Basics

Free: read, sort and filter a table.

Summaries

Count, sum and average, per group.

Joins

Combine tables by their keys, including the ones that don't match.

Changing data

Add, change and remove rows safely.

From Excel

Lookups, SUMIF, pivot tables and dynamic arrays, in SQL.

Case study

Answer real questions about one month of sales.