These ship as SQL dump files: CREATE TABLE and INSERT statements you load into a database you control. They are the schemas most SQL tutorials, books, and job interviews quietly assume you have seen. You cannot upload a dump to the playground on this site; point your own PostgreSQL, MySQL, or SQLite instance at these instead.
Postgres · MySQL · SQLite · SQL Server
A digital music store: artists, albums, tracks, invoices, employees, and customers across 11 tables.
The best all-round starter. Deep enough for four-table joins from invoice line back to artist, small enough to hold in your head, and it ships ready-made for every major engine.
MySQL
MySQL's own DVD rental sample database: films, actors, stores, staff, rentals, and payments.
The many-to-many between films and actors is the classic teaching case for join fan-out, and the rental and payment tables give you real date arithmetic to practice on. On Postgres, use Pagila below.
Postgres
A PostgreSQL port of Sakila, rebuilt with Postgres types, partitioned tables, and full-text search columns.
Use this over Sakila if you are on Postgres. The partitioned payment table is a rare chance to practice against something closer to a production schema.
Postgres
The Microsoft Access era trading-company schema: orders, order details, products, suppliers, shippers, and employees.
Small, tidy, and still the example used in a huge amount of older SQL writing, so it is worth recognizing. The employee reports-to column is a ready-made self-join exercise.
SQL Server
Microsoft's full bicycle-manufacturer sample: sales, purchasing, production, and HR across roughly 70 tables.
The one on this list that is genuinely large. Worth reaching for when you want to practice finding your way around an unfamiliar schema rather than querying a known one.
MySQL
Around four million rows of synthetic HR data: employees, salaries, titles, and department history.
The volume is the point. Aggregates and joins that feel instant on a few thousand rows start to have a cost here, which makes it a good place to see what an index does.