Skip to content

SQL Data Analysis project using a Music Store dataset to extract insights on sales, customers, and genres.

Notifications You must be signed in to change notification settings

ibrahimalam189/MYSQL-WORKS-PROJECTS-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎡 Music Store Data Analysis (SQL Project)

πŸ“˜ Objective

Analyze a digital music store dataset to answer key business questions about customers, artists, and sales.
Used SQL queries to extract insights that can help the store improve marketing and customer engagement strategies.


🧰 Tools & Skills Used

  • Database: MySQL
  • Concepts: Joins, CTEs, Subqueries, Aggregate Functions, Window Functions
  • Functions Used: SUM(), COUNT(), AVG(), RANK(), CONCAT(), ROUND()

πŸ“Š Business Questions Solved

πŸ”Ή Easy Level

  1. Who is the senior-most employee based on job title?
  2. Which country has the most invoices?
  3. What are the top 3 invoice totals?
  4. Which city generated the highest total sales?
  5. Who is the best (highest spending) customer?

πŸ”Ή Moderate Level

  1. Who are the customers that listen to Rock music?
  2. Which artists have composed the most Rock songs (Top 10)?
  3. Which songs are longer than the average song length?

πŸ”Ή Advanced Level

  1. How much did each customer spend on each artist?
  2. Which is the most popular genre in each country?
  3. Who is the top customer in each country based on total spending?

πŸ’‘ Key Insights

  • πŸ‡ΊπŸ‡Έ USA had the highest number of invoices (most customers).
  • 🎸 Rock was the most popular genre across multiple countries.
  • πŸ’° Top spending customers were identified for potential loyalty rewards.
  • πŸ™οΈ Prague generated the highest sales among all cities.
  • πŸ‘¨β€πŸ’Ό Steve Johnson (example) was the senior-most employee in the store.

βš™οΈ SQL Concepts Demonstrated

  • INNER JOIN to combine data from multiple tables.
  • GROUP BY and HAVING to summarize information.
  • CTE and Window Functions (RANK, PARTITION BY) to rank customers and genres.
  • Subqueries for comparing with averages.
  • ORDER BY, LIMIT, and Aggregate Calculations for analysis.

🧠 Learnings

  • Improved ability to translate business questions into SQL queries.
  • Hands-on experience with advanced SQL techniques.
  • Enhanced understanding of data relationships and performance optimization.

πŸ“Ž Dataset Source

This dataset is a sample Music Store Database used for SQL learning and practice.
(Contains tables: customer, invoice, artist, track, genre, employee, album)


πŸ“‚ How to Run

  1. Download or clone this repository.
  2. Import the SQL file into your MySQL Workbench.
  3. Execute the queries one by one to see the results.

✨ Author

Ibrahim Alam
πŸ’Ό Aspiring Data Analyst | Skilled in SQL, Python, Power BI & Excel
πŸ“§ [email:- mribrahimalam18@gmail.com linkedin:- www.linkedin.com/in/ibrahim-alam786 ]

About

SQL Data Analysis project using a Music Store dataset to extract insights on sales, customers, and genres.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published