This project contains a full SQL analysis of the Chinook Music Store Database.
The database includes information about customers, invoices, tracks, albums, artists, and genres.
I used SQL to explore the data and extract useful insights such as top customers, most popular music genres, highest revenue cities, and more.
SQL-Music-Store-Analysis/
βββ README.md
βββ chinook_erd.png
βββ complete_project_queries.sql
βββ summary.md
- Understand the data stored in the Chinook database
- Analyze customer spending and buying behavior
- Identify the top-performing genres and artists
- Find countries and cities generating the highest revenue
- Use SQL concepts like JOINs, GROUP BY, CTEs, and Window Functions
- Create a clean and simple SQL mini-project
The Chinook database includes these main tables:
- Customer β customer contact details
- Invoice β purchase summaries
- Invoice Line β track-level purchase details
- Track β music track information
- Album β album details
- Artist β artist information
- Genre β music categories
- Employee β support representatives
The complete database diagram is available here:

- Basic SQL (SELECT, WHERE, ORDER BY)
- Joins (INNER JOIN, LEFT JOIN)
- Aggregations (SUM, COUNT, MAX, MIN)
- GROUP BY and HAVING
- Subqueries
- Common Table Expressions (CTE)
- Window Functions (DENSE_RANK, RANK)
All important SQL queries are stored in: complete_project_queries.sql