This project focuses on analyzing the Chinook Digital Music Store database to uncover business insights and help optimize business opportunities by answering key data-driven questions.
The Chinook database contains information about:
- Albums
- Artists
- Customers
- Employees
- Genres
- Invoices
- Tracks
- Playlists
- Media Types
Below are the row counts for each table:
Album — 347
Artist — 275
Customer — 59
Employee — 8
Genre — 25
Invoice — 412
InvoiceLine — 2240
MediaType — 5
Playlist — 18
PlaylistTrack — 8715
Track — 3503
Using SQL, solve the following problems using the Chinook database:
Display the artist name and number of albums.
Display name, email, country of all such customers.
Display employee name and designation.
Identify the city producing the best customers.
Find which country has the maximum invoices.
Customer who has spent the most money.
Determine location based on Rock music consumption.
Display album name, artist name, and number of tracks.
Display track, album, artist, genre for all unpurchased tracks.
Display artist name and genre list.
Determine popularity based on purchases.
If tracks are more expensive than others, display track name, album title, artist name.
Popularity defined by number of songs performed in that genre.
Display artist name and number of songs.
Identify whether any album belongs to more than one artist.
Check for referential integrity violations.
Check for orphan invoice line records.
Identify incomplete album data.
Identify tracks present in playlists but invalid or missing.
