Skip to content

This project showcases end-to-end SQL queries for analyzing a music store database. The queries are categorized into Beginner, Intermediate, and Advanced levels, each addressing business questions around customers, artists, invoices, and music preferences.

Notifications You must be signed in to change notification settings

ktomm-prakash/-Spotify-Music-Store-SQL-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Logo Preview

Spotify-Music-Store-SQL-Analysis

This project showcases end-to-end SQL queries for analyzing a music store database. The queries are categorized into Beginner, Intermediate, and Advanced levels, each addressing business questions around customers, artists, invoices, and music preferences.

🧠 Key Business Questions Answered

🟒 Beginner Level

  • Who is the most senior employee?
  • Which countries have the most invoices?
  • What are the top 3 invoice totals?
  • Which city generates the most revenue (for a music festival promotion)?
  • Who is the top customer based on spending?

🟑 Intermediate Level

  • Who listens to Rock music? (with email and name)
  • Top 10 artists with the most Rock music tracks
  • Tracks with duration longer than the average

πŸ”΄ Advanced Level

  • How much has each customer spent on the top-selling artist?
  • Most popular music genre per country
  • Top customer by spending in each country

πŸ“Š Techniques & Concepts Used

  • Joins (INNER JOIN, SELF JOIN)
  • Subqueries
  • CTEs (Common Table Expressions)
  • Aggregation (Sum, Count, Avg)
  • Window Functions (ROW_NUMBER)
  • Filtering & Sorting (WHERE, ORDER BY, GROUP BY)

πŸ’‘ Insights & Use Cases

  • Marketing Strategy: Identify top cities and countries for targeted campaigns.
  • Customer Analytics: Discover loyal and high-spending customers.
  • Artist Management: Recognize high-performing artists and genres.
  • Business Expansion: Decide regions with high revenue potential for concerts or new releases.

πŸ“Œ Tools Used

  • SQL (My SQL Syntax)
  • MySQL Workbench

About

This project showcases end-to-end SQL queries for analyzing a music store database. The queries are categorized into Beginner, Intermediate, and Advanced levels, each addressing business questions around customers, artists, invoices, and music preferences.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published