syifbhuiyan

๐ŸŽต SQL Data Analysis: Chinook Music Store

Goal: Demonstrate basic SQL querying skills by exploring a sample music store database using SQLite.

Tools Used:


๐Ÿ“˜ Project Overview

This beginner-friendly SQL project analyzes data from the Chinook database, which simulates a digital music store. The database includes tables for customers, invoices, tracks, artists, albums, and more.

The goal is to write and interpret simple SQL queries to extract insights about customer demographics and purchasing patterns.


๐Ÿ“ฆ Dataset


๐Ÿ” SQL Queries & Outputs

1. ๐Ÿง‘ First 5 Customers

SELECT * FROM Customer LIMIT 5;;

This query previews a few customer records to understand the available columns.


2. ๐ŸŒ Unique Countries with Customers

SELECT DISTINCT country FROM customer;

Identifies the countries from which the company has customers.


3. ๐Ÿงพ Total Number of Invoices

SELECT COUNT(*) AS total_invoices FROM invoice;

Returns the total number of purchases recorded.


4. ๐Ÿ’ฐ Total Sales by Country

SELECT billingcountry, SUM(total) AS total_sales
FROM invoice
GROUP BY billingcountry
ORDER BY total_sales DESC;

This aggregates total revenue per billing country.


5. ๐Ÿ† Top 5 Customers by Revenue

SELECT customerid, SUM(total) AS amount_spent
FROM invoice
GROUP BY customerid
ORDER BY amount_spent DESC
LIMIT 5;

Ranks the customers who spent the most.


๐Ÿ“Š Key Insights


๐Ÿงฐ What I Practiced


๐Ÿ–ผ๏ธ Screenshots

๐Ÿ“ Stored in: assets/sql-project/
๐Ÿ“Œ First 5 Customers ๐Ÿ“Œ Unique Countries with Customers ๐Ÿ“Œ Total Number of Invoices ๐Ÿ“Œ Total Sales by Country ๐Ÿ“Œ Top 5 Customers by Revenue โ€”

๐Ÿ“ Files in this Project

File Description
Chinook_Sqlite.sqlite The SQLite database file
sql-chinook-analysis.md This markdown report
assets/sql-project/ Folder with screenshots of query results

๐Ÿ”— References