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.
Rocket Pizza
A small pizza shop with big data: customers, a menu and a month of orders.
customers · menu_items · orders · order_items · staff
78 rows
Good for: JOINs across 3–4 tables, GROUP BY and revenue reports, Window functions and rankings
Paws & Whiskers Shelter
Twenty animals waiting for a home, and the people who adopt them.
pets · adoption_requests
32 rows
Good for: First SELECT, WHERE and ORDER BY, NULL vs empty string, CASE WHEN labels
Streamly
A small music streaming app: signups, listening sessions and subscriptions, January to mid-April 2026.
users · plays · subscriptions
2,807 rows
Good for: Daily and monthly active users, Cohort retention, Conversion and churn
Want to query them without downloading anything? Open the online SQL playground.