Skip to content

This project demonstrates SQL-based data analysis using a music database.

Notifications You must be signed in to change notification settings

Nikhil3107jaiswal/Analysis-with-SQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Analysis with SQL

πŸ“Œ Project Overview

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.

πŸ—„οΈ Database Setup

  1. Executed schema.sql to create the database and base tables.
  2. Created the songs table with the following columns:
    • id
    • name
    • length
    • album_id
  3. Executed data.sql to populate the tables with sample data.

πŸ“Š Analysis Performed

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.

πŸ›  Tools Used

  • MySQL
  • MySQL Workbench
  • GitHub

βœ… Outcome

This project showcases practical SQL skills including joins, subqueries, aggregations, filtering, and real-world analytical problem solving.

About

This project demonstrates SQL-based data analysis using a music database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published