This project is an end-to-end SQL case study using a music store database. The goal is to analyze customer behavior, sales trends, and music preferences using SQL queries. This helps simulate real-world business insights that data analysts might uncover in a retail music company.
- ✅ ** Real-world SQL Queries** solving business problems.
- ✅ Used advanced JOINs, CTEs, Window Functions, Subqueries.
- ✅ Focused on customer behavior, genre trends, artist popularity, and regional sales.
- ✅ Hands-on experience with analytical thinking and SQL optimization.
-
Who is the best customer?
→ Found the customer who spent the most across all invoices. -
Which city has the best customers?
→ Identified the city with the highest invoice revenue for promotional targeting. -
Top 10 Rock artists.
→ Ranked bands based on the number of Rock genre tracks. -
Which country has the most invoices?
-
Top 3 highest invoice totals.
-
What is the most popular genre in each country?
-
Find customers who listen to Rock music.
-
Customers' total spend on the top artist.
-
Tracks longer than average length.
-
Who spent the most on music by country?
→ UsedROW_NUMBER()window function for each country group.
| Tool | Purpose |
|---|---|
| SQL | Data querying and analysis |
| Git | Version control |
| Markdown | Documentation |
Replace the image links with your actual screenshots after uploading them in your repo’s folder (
/imagesor/assets)
- Learned how to structure SQL queries to solve business questions.
- Understood the power of CTEs and Window Functions for advanced reporting.
- Practiced subquery optimization and join techniques for efficient data retrieval.
- Strengthened data storytelling using structured SQL outputs.
- Clone the repository.
- Open the
.sqlfile in any SQL editor (DB Browser, DBeaver, etc.) - Load the music store SQLite database.
- Run queries one-by-one to explore and understand the business insights.
If you have any questions, feel free to connect:
👨💻 Mukesh Kumar
📧 [muk.786422@gmail.com]
🔗 [LinkedIn:https://www.linkedin.com/in/kumarmukesh95/)]
Give it a ⭐️ on GitHub or share it with others who want to practice SQL in real-world projects!