sqlstreak

Free sample databases for SQL practice

Small, realistic datasets with the tables you need to practise real questions. Each one loads in PostgreSQL and SQLite (tested on both), is free to use under CC BY 4.0, and can be queried right in your browser.

Want to query them without downloading anything? Open the online SQL playground.