A music store analysis SQL project involves examining and extracting valuable insights from a database related to a music store. The database contains tables with information about customers, employees, sales transactions, products (music albums or tracks), and inventory.
- MySQL 🐬
- MySQL WorkBench 🛠️
This repository contains SQL queries for analyzing a music store database. The database includes information about albums, artists, customers, invoices, and tracks. The queries provide insights into employee hierarchy, top-performing countries, customer spending, and more.
Make sure you have a MySQL database set up with the provided schema. You can find the SQL script for creating the database here.
The database schema includes tables for albums, artists, customers, invoices, tracks, and more. For a detailed overview, refer to database_schema.md.
- Senior Most Employee: Find the senior most employee based on job title.
- Top Invoiced Countries: Identify countries with the most invoices.
- Top 3 Invoices: List the top 3 invoices based on the total amount.
- Best City for Music Festival: Determine the city with the highest sum of invoice totals.
- Rock Music Listeners: Retrieve the email, first name, last name, and genre of all Rock music listeners.
- Top 10 Rock Bands: List the top 10 rock bands based on the total number of tracks.
- Longest Tracks: Return track names with a song length longer than the average, ordered by song length.
- Customer Spending on Artists: Find the amount spent by each customer on artists.
- Popular Genre by Country: Determine the most popular music genre for each country.
- Top Customer by Country: Identify the customer that has spent the most on music for each country.
- Clone the repository:
git clone https://github.com/your-username/music-store-database.git
- Set up your MySQL database using the provided script:
mysql -u username -p < database_setup.sql
- Run the queries in your MySQL environment or preferred database management tool.
Explore some of my other projects:
- HR ANALYTICS DASHBOARD 📊
- SALES DATA ANALYSIS 🛒
- Netflix Data Analysis using Python 🎬
- Bank Loan Analysis using Tableau 💼
- Blog Me Sentiment Analysis using Python 📰
- Music Store Analysis using MySQL 🎶
Feel free to contribute by adding new queries, improving existing ones, or providing suggestions for better analysis.