Movie Rentals SQL Practice Dataset
Movies, customers, and rental history for compact join, aggregate, and NULL practice.
Download this dataset, free
No account, no email, no attribution required — free for any use, including commercially. Take the single .sql file to load everything into PostgreSQL, MySQL, SQLite, DuckDB, or SQL Server, or grab the raw CSVs.
Movie Rentals is a compact three-table dataset for practicing SQL without a large schema getting in the way. The catalog table describes each movie, the customer table identifies renters, and the rental history table links them together with dates and amounts.
Because some rentals have not been returned, the dataset is especially good for practicing IS NULL, left joins, Top-N reports, and grouped revenue summaries.
Schema
Schema · Movie RentalsView dataset schema3 tables
One row per movie in the catalog.
One row per customer.
One row per rental. Movies still out have a null returned_date.
Best for
- Joining rentals to customers and movies.
- Counting, ranking, and summing activity by movie or customer.
- Finding rentals that are still out with IS NULL.
Starter questions
- Which genres produce the most rental revenue?
- Which customers have the most rentals?
- Which movies have not been returned yet?