SQL Project - Music Store Data Analysis
Introduction:
The Music Store Data Analysis project aims to extract valuable insights from a relational database containing information about a music store's transactions, customers, employees, and artists. By formulating SQL queries, we will uncover meaningful patterns and answer specific questions to guide business decisions and strategies.
Question Set 1 - Easy
- Who is the senior most employee based on job title?
- Which countries have the most invoices?
- What are the top 3 values of total invoices?
- Which city has the best customers? We would like to throw a promotional Music Festival in the city where we made the most money. Write a query that returns one city that has the highest sum of invoice totals. Return both the city name & sum of all invoice totals.
- Who is the best customer? The customer who has spent the most money will be declared the best customer. Write a query that returns the person who has spent the most money.
Question Set 2 - Moderate
- Write a query to return the email, first name, last name, & Genre of all Rock Music listeners. Return your list ordered alphabetically by email starting with A.
- Let's invite the artists who have written the most rock music in our dataset. Write a query that returns the Artist name and total track count of the top 10 rock bands.
- Return all the track names that have a song length longer than the average song length. Return the Name and Milliseconds for each track. Order by the song length with the longest songs listed first.
Question Set 3 - Advance
- Find how much amount was spent by each customer on artists. Write a query to return customer name, artist name, and total spent.
- We want to find out the most popular music Genre for each country. We determine the most popular genre as the genre with the highest amount of purchases. Write a query that returns each country along with the top Genre. For countries where the maximum number of purchases is shared, return all Genres.
- Write a query that determines the customer who has spent the most on music for each country. Write a query that returns the country along with the top customer and how much they spent. For countries where the top amount spent is shared, provide all customers who spent this amount.