The Music Store SQL Analytics Project is designed to analyze a dataset from a music store, utilizing SQL queries to answer various business-related questions. This project aims to provide insights into customer behavior, sales trends, and employee performance within the music retail environment.
The repository is organized as follows: Music-Store-SQL-Analytics-Project/ ├── questions/ │ ├── question1.sql │ ├── question2.sql │ └── ... ├── schema/ │ └── schema_image.png └── README.md
This project addresses multiple analytical questions related to the music store. Each question has a corresponding SQL query file located in the questions/ directory. Some example questions include:
- What is the total revenue generated by each genre?
- Which employee has the highest number of sales?
- What are the top-selling albums in the last year?
- Which country has the most customers?
Each SQL file contains the query used to extract relevant data from the database.
The database schema is visualized in the schema/schema_image.png file. It includes tables such as:
- Customers
- Employees
- Albums
- Genres
- Invoices
This schema outlines the relationships between different entities in the music store database.
To set up this project locally or run it online, follow these steps:
-
Clone the Repository: git clone https://github.com/clawnic/Music-Store-SQL-Analytics-Project.git
-
Install a Database Management System (DBMS):
- Use MySQL, PostgreSQL, or any other compatible DBMS.
- Create Database:
- Create a new database in your DBMS and import the necessary tables based on the provided schema.
- Run Queries:
- You can run your queries online using DB Fiddle.
- Copy the SQL scripts from the
questions/directory. - Go to DB Fiddle, select your preferred SQL dialect (e.g., MySQL).
- Paste your queries into the editor and execute them to see results.
- Copy the SQL scripts from the
To use this project effectively:
- Review each question and its corresponding query.
- Analyze the results obtained from executing the queries.
- Modify or extend queries as needed for further analysis.
Contributions are welcome! If you have suggestions for improvements or additional queries, please fork the repository and submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Last updated: Saturday, January 11, 2025