This project analyzes a Digital Music Store database using SQL to answer real-world business questions related to customers, sales, revenue, and employee performance.
The objective is to extract meaningful insights from relational data and demonstrate SQL skills commonly used in Data Analyst roles.
- PostgreSQL
- pgAdmin 4
- SQL
- Git
- GitHub
The database contains the following tables:
- Artist
- Album
- Track
- Genre
- MediaType
- Playlist
- PlaylistTrack
- Employee
- Customer
- Invoice
- InvoiceLine
Used ORDER BY and LIMIT to identify the highest-ranking employee.
Used GROUP BY and COUNT() to analyze invoice distribution across countries.
Used ORDER BY DESC and LIMIT to identify the highest invoice values.
Used SUM() aggregation to determine the city contributing the most revenue.
Joined Customer and Invoice tables to identify the customer with the highest spending.
-
SELECT
-
WHERE
-
ORDER BY
-
GROUP BY
-
Aggregate Functions
- COUNT()
- SUM()
-
INNER JOIN
-
LIMIT
-
Business Analytics
- Writing business-focused SQL queries
- Working with relational databases
- Performing customer and sales analysis
- Extracting actionable business insights
- Improving SQL problem-solving skills
Krishan Choudhary
Data Analyst
LinkedIn: https://www.linkedin.com/in/krishan-choudhary-69894235b/