This project demonstrates SQL-based data analysis using a music database. The objective was to create database tables, populate them with data, and solve multiple analytical SQL queries related to bands, albums, and songs.
- Executed
schema.sqlto create the database and base tables. - Created the
songstable with the following columns:- id
- name
- length
- album_id
- Executed
data.sqlto populate the tables with sample data.
The following analyses were completed using SQL queries:
- Identified bands with and without albums
- Found the oldest album and the longest album
- Calculated average song length
- Retrieved the longest song from each album
- Counted the number of songs per band
- Derived album decades using year-based calculations
- Filtered albums using text and date-based conditions
All queries are documented and available in queries.sql.
- MySQL
- MySQL Workbench
- GitHub
This project showcases practical SQL skills including joins, subqueries, aggregations, filtering, and real-world analytical problem solving.