SQL Practice Exercises

Twenty-eight exercises across three paths. You write a real query, and it is checked by running it against a live sample database and comparing your rows against the expected answer — so any query that produces the right result is accepted, not just one exact wording.

Solved
0 / 0
Practice streak
0 days
Overall0%

Where your progress lives. There are no accounts here. Which exercises you have solved is stored only in this browser, using localStorage. It is never uploaded anywhere. That also means it does not follow you to another device or browser, and clearing your browsing data will erase it.

Frequently asked questions

Is this actually free?

Yes, all 28 exercises, the SQL Playground, and every blog tutorial are free with no paywall, no trial period, and no credit card. There are no user accounts to create.

Do I need to sign up or install anything?

No. Open this page and start writing queries. There is no database to install and no account to register — the SQL engine (AlaSQL) runs inside your browser tab.

How is my answer checked — does it have to match exactly?

No. Your query and a reference solution both run against the same sample database, and the two result sets are compared row by row. Any query that produces the correct rows is accepted, even if it's phrased completely differently from the reference solution.

Does my SQL get sent to a server?

No. Every query — yours and the reference solution — runs locally in a Web Worker in your own browser. Nothing about what you write or submit is transmitted anywhere.

Is the Certificate of Completion an accredited qualification?

No. It's a self-issued record that you completed a learning path here, printable as a keepsake or portfolio item. It is not accredited and is not recognised by any university, employer or certifying body.