This project analyzes a digital music store database using PostgreSQL.
The database contains information about employees, customers, invoices, tracks, playlists, artists, albums, and more.
Through SQL queries, we explore sales trends, customer behavior, popular genres, top artists, and revenue insights.
- PostgreSQL
- SQL (queries, joins, aggregations, subqueries)
- pgAdmin / psql (for running queries)
- Git & GitHub for version control
music_store_csv.zip
β Contains all 11 dataset files in CSV formatschema_diagram.png
β ER diagram showing relationships between tablesCreate_table_query.sql
β SQL queries to create tablesQuestions.txt
β Business/analysis questionsAnswers.sql
β SQL queries answering the analysis questions
The database has 11 tables:
- Employee β Employee details
- Customer β Customer info
- Invoice β Purchase invoices with billing details and total
- Invoice_Line β Details of tracks purchased in each invoice
- Track β Tracks information
- Playlist β Music playlists
- Playlist_Track β Mapping between playlists and tracks
- Artist β Artist information
- Album β Albums created by artists
- Media_Type β File/media type of tracks
- Genre β Music genres
π See schema_diagram.png
for a complete Entity-Relationship diagram.
- Clone this repository:
git clone https://github.com/Harsh-Belekar/Music-Store-SQL-Analysis.git