Skip to content

"SQL-based analysis of movie rental data using the Maven dataset – insights into customer behavior, rentals, and revenue trends."

Notifications You must be signed in to change notification settings

Ritikrb126/Maven-Movie-Rental-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🎬 Maven Movie Rental Analysis

📌 Project Overview

This project analyzes the Maven Movie Rental database to gain insights into rental trends, customer behavior, and business performance. Using SQL queries, we extract meaningful insights that help improve decision-making for revenue growth, customer retention, and inventory optimization.

📊 Key Objectives

Customer Insights:

  • Identify customer details (names, emails) for targeted marketing campaigns. Analyze customer rental patterns to improve customer engagement.

Movie Inventory Analysis:

  • Explore the rental inventory and classify movies based on rental rates and availability. Provide recommendations for expanding the movie collection based on popularity and rental rates. Revenue Optimization:
  • Analyze rental rates to identify trends and the profitability of various pricing categories. Determine the most rented movie categories and ratings to maximize revenue.

Operational Efficiency:

  • Help track and manage movie inventory effectively. Highlight gaps in the inventory and optimize stock levels.

🛠️ Tools & Technologies

  • Database: MySQL
  • Query Language: SQL mysql_img.png  

Project Result

Click here to get full code

🔍 Dataset Overview

The Maven Movie Rental Database contains tables related to:

  • Customers: Personal details, rental history
  • Movies: Titles, genres, rental prices, and ratings
  • Stores: Store locations and inventory data
  • Payments: Customer payments and rental transactions

📌 Ad-hoc Business Questions & SQL Queries

Here are some ad-hoc business questions answered using SQL:

1️⃣ Rental Rate & Pricing Analysis

  • What is the total number of movies in the inventory that are available for rent at the lowest rental rate of $0.99?

    email.png  

  • What is the distribution of movies across different rental rate categories?

    email.png  

  • Do movies with higher replacement costs have higher rental rates?

email.png  

2️⃣ Movie Ratings & Performance

  • Which movie rating category has the highest number of films?

    email.png  

  • What is the most common movie rating in each store?

    email.png  

  • How does movie length correlate with rental duration and ratings?

email.png  

3️⃣ Movie Inventory & Availability

  • Can we list all movies along with their category and language?

    email.png  

  • How many times has each movie been rented out?

    email.png  

  • Can we pull a list of movies available in each store, including title, description, and store ID?

    email.png  

4️⃣ Revenue & Business Performance

  • What are the top 10 highest-grossing movies in terms of revenue?

    email.png  

  • Which store has historically generated the most revenue? How does it compare with other stores?

    email.png  

  • How much revenue do we generate per month?

    email.png  

  • Which customers have spent the most money on rentals?

    email.png  

5️⃣ Customer Insights & Loyalty

  • How can we extract the first name, last name, and email address of all customers to prepare a comprehensive contact list for the marketing team?

     

  • Who are the top customers who have rented at least 30 times?

    email.png  

  • Could you pull all payments from our first 100 customers (based on customer ID)?

    email.png  

  • How many customers have made payments over $5 since January 1, 2006?

    email.png  

  • Could you write a query to pull all payments from those specific customers, along with payments over $5, from any customer?

    email.png  

  • Can we identify customers who have rented less than 15 times overall?

    email.png  

  • Which store does each customer visit, and are they active or inactive?

    email.png  

6️⃣ Rental Trends & Behavioral Analysis

  • Do longer movies also tend to be more expensive to rent?

    email.png  

  • How many titles are available, categorized by their respective rental durations?

    email.png  

  • Can we categorize movies by length for better recommendations?

    email.png  

  • Which movies should be recommended to individuals based on specific demographics like cultural background or interests?

    email.png  

7️⃣ Special Features & Movie Extras

  • How many films include the "Behind the Scenes" special feature?

    email.png  

8️⃣ Staff & Store Management

  • Can we list all staff members and advisors, and distinguish their roles?

    email.png  

  • The Manager from Store 2 is working on expanding our film collection there.
    Could you pull a list of distinct titles and their descriptions currently available in inventory at Store 2?

email.png  

9️⃣ Actor & Casting Insights

  • How many movies has each actor appeared in?

     

  • Can we list all the starred actors in the movies?

    email.png  

  • Customers often ask which films their favorite actors appear in. Can we generate a list of all actors with each title they appear in?

    email.png  

📌 How to Use This Repository

  1. Clone the repository:
    git clone https://github.com/Ritikrb126/Maven-Movie-Rental-Analysis
  2. Open the SQL file and execute queries on your database.
  3. Modify queries based on additional business requirements.

🤝 Contributing

Feel free to contribute by improving queries, adding visualizations, or suggesting new analysis!

📩 Contact

📧 Ritik Bhoyar
🔗 GitHub Profile


About

"SQL-based analysis of movie rental data using the Maven dataset – insights into customer behavior, rentals, and revenue trends."

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published