Skip to content

SujitKumarPadhan/music-store-sql-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎵 Music Store Data Analysis using SQL

📌 Project Overview

This project focuses on analyzing a Music Store Database using SQL to understand customer purchasing behavior, sales trends, music preferences, and regional performance.

The objective of this project is to transform raw business data into meaningful insights by solving real-world business questions using SQL queries, database relationships, and analytical techniques.


🎯 Objective

  • Analyze customer purchasing behavior
  • Identify top-performing customers and countries
  • Understand music genre preferences across regions
  • Discover sales trends and customer spending patterns
  • Generate meaningful business insights using SQL

🛠️ Technologies Used

  • SQL
  • MySQL
  • Relational Database Design
  • Data Analysis

📚 SQL Concepts Used

  • JOIN Operations
  • GROUP BY & HAVING
  • Aggregate Functions (SUM, COUNT, AVG)
  • ORDER BY & LIMIT
  • Subqueries
  • Common Table Expressions (CTEs)
  • Window Functions (RANK())
  • Data Aggregation Techniques

📊 Key Business Questions Solved

  1. Who is the senior-most employee based on job title?
  2. Which countries have the highest number of invoices?
  3. What are the top invoice values?
  4. Which city generates the highest revenue?
  5. Who is the best customer based on total spending?
  6. Who are the Rock music listeners?
  7. Which artists have written the most Rock music?
  8. Which songs are longer than the average duration?
  9. How much amount is spent by each customer on artists?
  10. What is the most popular music genre for each country?
  11. Who is the top customer in each country based on spending?

🔍 Key Insights

  • Rock music is the most popular genre across the majority of countries.
  • Countries like the USA, Canada, and Brazil show strong customer activity and purchasing behavior.
  • High-value customers contribute significantly to overall sales revenue.
  • Customer spending behavior differs across countries and artists.
  • Some regions show unique music preferences, highlighting regional variations in taste.

🚀 Challenges Faced During the Project

  • Managing multiple tables and creating accurate JOIN relationships was challenging.
  • Understanding database relationships and selecting correct columns took time.
  • Implementing CTEs and Window Functions (RANK()) was initially difficult but useful for solving advanced queries.
  • Writing long SQL queries and debugging errors improved problem-solving skills.

📂 Project Files

music-store-sql-analysis/
│── dataset/
│── screenshots/
│── Music_Store_SQL_Project.sql
│── Music_Store_Presentation.pdf
│── README.md

📸 Project Screenshots

  • Database Schema Diagram
  • Best Customer Analysis
  • Rock Music Listener Analysis
  • Most Popular Genre by Country
  • Top Customer by Country
  • Project Challenges & Learnings

🎓 Learning Outcomes

This project improved my understanding of:

  • SQL Query Writing
  • Database Relationships
  • Business Data Analysis
  • Query Optimization
  • Problem Solving with SQL
  • Turning Raw Data into Actionable Insights

🙏 Acknowledgment

Special thanks to:

Deepraj Vadhwane sir — for continuous guidance and support throughout this project.

Leelavardhan Raj sir — for mentorship, encouragement, and practical learning support.


🔗 Connect With Me

Sujit Kumar Padhan B.Tech CSE Student | SQL | Data Analytics | Database Management

If you found this project helpful, feel free to ⭐ the repository.

About

SQL-based Music Store Data Analysis Project using MySQL, CTEs, Window Functions, and Business Insights.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages