Sakila DVD Rental Data Analysis (PostgreSQL)
SQL-driven insights into customer behavior, rentals, and store performance on the Sakila/DVD Rental sample DB—completed for Udacity’s Programming for Data Science Nanodegree.
Overview.
A focused SQL project exploring the Sakila / DVD Rental database to understand movie-watching patterns, payment earnings, and store performance. Deliverables include a set of reproducible queries and a concise visual report. Built as part of Udacity’s Programming for Data Science Nanodegree.
Key features
- Targeted questions → queries: film-category viewing patterns; family movies split into rental-duration quartiles; category counts by duration bucket; store throughput & order-fulfillment metrics (see
queries.txt). - Clear outputs: charts/tables packaged in a compact PDF report (
report.pdf). - Portable setup: uses the widely known Sakila/DVD Rental sample schema; easy to load on local PostgreSQL.
Tech stack
PostgreSQL, SQL, pgAdmin/psql, basic data visualization (report PDF)
Architecture (simplified)
- Load sample DB (DVD Rental/Sakila) into PostgreSQL.
- Execute analysis queries from
queries.txtto answer business-style questions. - Export results and assemble figures into
report.pdffor stakeholder-friendly insights.
Dataset
The Sakila / DVD Rental sample database models a DVD rental store (films, actors, customers, inventory, rentals, payments, stores). Official docs + ERD are available from MySQL; a PostgreSQL “DVD Rental” version and ERD are provided by PostgreSQLTutorial.
Links
- Code repository: Sakila-DVD-Rental-Data-Analysis (GitHub).
- Queries:
queries.txt. - Report:
report.pdf - Sample DB (PostgreSQL): DVD Rental – PostgreSQLTutorial.
- Schema reference (MySQL Sakila): Sakila docs.