Skip to content
Yatno

SQL Practice Environment

Practise SQL on a small shop database that runs in your browser. Work through 13 exercises from SELECT to JOIN and GROUP BY, checked as you go.

Runs in your browser. Nothing is uploaded.

Loading the app…

How to use it

Which database is it?
SQLite, running in your browser. The SQL you learn here works in PostgreSQL, MySQL and others with small differences.
How are answers checked?
Your query is run and its rows are compared with the rows of a correct answer. Any query that returns the right rows counts, however you wrote it. Column names do not matter; the order of rows matters only when the task asks for an order.
Can I break the database?
No. Every run starts from a fresh copy, so INSERT, UPDATE and DELETE are safe to try.
Why does the first run take a moment?
The database engine is downloaded the first time (about 1 MB). After that, queries are instant.
Is anything uploaded?
No. The database and your queries stay in your browser.