Skip to content
Selected Work · Customer & Revenue Analysis

Rockbuster customer & revenue analysis built for a streaming pivot.

An SQL-led analysis of Rockbuster’s 15-table relational database, built to guide the move from traditional store rentals to an online streaming model — mapping where revenue concentrates, which audiences spend most, and what content drives the catalogue.

PostgreSQL SQL pgAdmin 4 Tableau Excel Data Modelling
Project overview

From a 15-table database to streaming-strategy priorities

The project was built around a practical commercial question: as Rockbuster moves from physical rentals to online streaming, where does revenue actually come from — which markets, which customers, and which content?

Business problem

A movie-rental business needed to understand customer value, market performance, and revenue concentration before committing to an online streaming launch. The raw data lived across a 15-table relational database — useful, but not decision-ready until it was queried, joined, and summarised into clear answers.

Analytical goal: use relational SQL to answer management-level questions on geography, customer value, and content performance — and present them to both technical and non-technical audiences.

Final output

The deliverables were built for two audiences: documented SQL scripts and a query-output workbook for technical review, and a manager-facing presentation with Tableau visuals for the business.

A formal data dictionary documents every table, key, and relationship, so each finding can be traced back to the query and the schema behind it.

Relational tables15customers, payments, rentals, films, inventory, geography and more
Highest-earning ratingPG-13out-earned NC-17, PG, R and G across the catalogue
Top revenue genresSports & Sci-Fiahead of Drama and Comedy on rental revenue
Final deliverables4SQL scripts, query workbook, data dictionary, presentation
SQL-first workflow

How the analysis was built

The work moved from database restore and quality checks through to multi-table analysis and stakeholder-ready outputs — the SQL itself is the core proof of the project.

01
Restore & loadRestored the Rockbuster database backup into PostgreSQL via pgAdmin 4 and verified data integrity before any analysis.
02
Schema & ERDInterpreted the entity-relationship diagram and documented tables, keys, and relationships in a formal data dictionary.
03
Data profiling & QARan duplicate checks, null and data-quality review, and DISTINCT counts to profile the data before querying.
04
Foundational queriesSELECT / WHERE / ORDER BY / LIMIT, GROUP BY / HAVING, and aggregate functions (COUNT, SUM, AVG, MIN, MAX).
05
Multi-table joinsINNER, LEFT, RIGHT, and FULL joins across customers, payments, rentals, films, inventory, and geography to build unified analysis sets.
06
SubqueriesSubqueries in SELECT, WHERE, and FROM for average-payment analysis and ranking logic.
07
CTEsWITH … AS common table expressions for customer-count and revenue analysis, keeping advanced logic readable.
08
Query optimisationEXPLAIN used to compare query plans and cost, with CASE statements for derived business fields.
09
Outputs & communicationExported query outputs to Excel, built Tableau visuals, and packaged findings into a manager-facing presentation.
The approach

Two ways to read a market: scale and intensity

A single revenue league table hides as much as it shows. Reading markets by total revenue and by average spend per customer surfaces two different — and equally useful — kinds of opportunity.

How the market analysis was structured

Customer, payment, rental, and geography tables were joined so each market could be ranked two ways, then cross-referenced against content performance.

01Rank markets by total revenue to find the biggest commercial bases.
02Rank markets by average spend per customer to find the most engaged audiences.
03Cross-reference revenue by film genre and rating to see what content drives spend.
04Combine the three views into recommendations, not a single ranking.
Top total revenueIndia & China

The largest markets by total payment, ahead of the United States and major European markets.

Highest average spendTaiwan & Philippines

Smaller but highly engaged audiences, leading on average spend per customer (~116 and ~111).

Top revenue genresSports & Sci-Fi

Out-earned Drama and Comedy, the strongest content categories for rental revenue.

Highest-earning ratingPG-13

Broad family appeal puts PG-13 at the top of the rating mix, ahead of NC-17, PG, R and G.

Rockbuster customer and revenue SQL analysis – Tableau visualisation preview
The data at a glance

Markets, audiences, and content

Headline cuts of the analysis — the markets that pay most, the audiences that spend most, and the content that drives revenue.

Total revenue by market

Top countries by total customer payment.

  • China$5.25K
  • India$5.13K
  • United States$3.69K
  • Brazil$2.92K

Average spend per customer

Highest-value audiences by market.

  • Taiwan116
  • Philippines111
  • Brazil104
  • United States102

Revenue by film rating

Rental revenue across MPAA ratings.

  • PG-13$13.86K
  • NC-17$12.63K
  • PG$12.24K
  • R$12.07K

Top revenue genres

Strongest content categories by revenue.

  • Sports$4.89K
  • Sci-Fi$4.34K
  • Animation$4.25K
Business questions

The questions the SQL set out to answer

Each strand of the analysis was framed as a management question, then answered with documented, reproducible queries.

01

Where are the customers?

Countries with the highest customer counts, and the cities within priority countries with the strongest concentration.

02

Which markets pay most?

Revenue concentration by country, separating large total markets from high average-spend audiences.

03

Who are the top customers?

The highest-value customers by total amount paid, to support targeted retention and marketing.

04

What content drives revenue?

Rental revenue by genre and rating, and the patterns in rental rate and duration behind it.

Key findings

What the data made clear

The analysis turns a 15-table database into a small number of decisions Rockbuster could act on as it moves online.

India and China lead total revenue

The two largest markets by total customer payment, followed by the United States and major European markets — the obvious anchors for an online launch.

Taiwan and the Philippines spend most per head

Smaller markets, but the highest average spend per customer — a signal of highly engaged niche audiences worth retaining and growing.

Sports and Sci-Fi drive content revenue

Both out-earned Drama and Comedy, pointing to the genres most worth prioritising in catalogue and promotion.

PG-13 is the highest-earning rating

Its broad family appeal puts it ahead of every other rating — useful for shaping promotions by rating across the top markets.

Technical validation

Built to be defensible and reproducible

The analysis was structured so every figure can be traced back to a documented query and a verified schema — and so the whole project can be re-run from the original backup.

Queries you can trust

The findings are not one-off outputs — they sit on a profiled dataset, documented relationships, and queries that were checked and optimised.

Data integrity: the database was profiled on load with duplicate checks, null review, and DISTINCT counts before any analysis.
Documented relationships: every multi-table join is grounded in the keys and relationships recorded in the data dictionary.
Optimised & reproducible: queries were compared with EXPLAIN, and the project re-runs from backup → scripts → outputs.
Documented SQL scripts

Schema exploration, cleaning and profiling, joins, subqueries, CTEs, and business-KPI queries.

Query-output workbook

An Excel file of SQL results, ready for technical review and reuse.

Data dictionary

Tables, keys, and relationships documented to support structured querying.

Manager presentation

Findings and recommendations with Tableau visuals, pitched at a non-technical audience.

Recommendations

How Rockbuster could use the analysis

Anchor the launch on the biggest markets: India, China, the US and Europe carry the most total revenue and are the natural priority for the streaming rollout.

Protect and grow engaged niches: Taiwan and the Philippines spend the most per customer — strong candidates for loyalty and retention focus.

Lead with the content that earns: prioritise Sports and Sci-Fi, and weight promotion toward the top-earning ratings like PG-13.

Tailor by market: combine the geography, spend, genre and rating views to shape regional marketing rather than a single global plan.

Tools & deliverables

What this project demonstrates

Relational database analysis in PostgreSQL — multi-table joins, subqueries and CTEs — alongside data profiling, query optimisation, and the ability to communicate findings clearly to both technical and business audiences.

PostgreSQL SQL pgAdmin 4 Tableau Excel PowerPoint CTEs & Subqueries Data Modelling

Need the full portfolio or resume?

Download the PDF portfolio for a polished overview of the projects, or open the resume for the formal career summary, tools, and work history.