LearnSQL is a free place to practise SQL against real sample databases — no sign-up, no install, nothing to break. You can run your first query about ninety seconds from now. Here's the shortest path in, wherever you're starting from.
Start with the concepts — tables, keys, how a database differs from a spreadsheet, and why there are so many of them.
How databases work →You already understand rows and columns. Jump straight to writing your first
SELECT and go from there.
Eleven classic sample databases across two engines, queryable right now in the browser. No account needed.
Open the SQL Editor →If you'd rather just be told what to do, do these five things in order.
Open the SQL Editor and press Run. There's already a query in the box. It returns real rows from a real database — nothing to set up, and you cannot break anything, because it's read-only.
The editor explains your query in plain English as you type, clause by clause. Change a column name, change the sort order, run it again. This is the whole loop — read, tweak, run.
SELECT, FROM, WHERE, ORDER BY.
That's a genuinely useful SQL vocabulary, and Learn SQL from scratch
walks you through them with exercises that check your answer as you type.
Counting and summing is where SQL starts beating a spreadsheet.
Aggregate functions covers SUM, AVG
and COUNT using real cash-receipts data — with the Excel equivalents beside
each one.
Most of this site needs nothing from you. Being straight about the line:
INSERT/UPDATE/DELETE
on a private copy in your browserThe free browser tools and the open API never need a login — you can learn the whole language without spending anything.