Joining the Charts: Exploring SQL JOINs

Introduction and Setting the Stage

Hello there! I am really excited to have you as a part of our exhilarating learning journey – Learning SQL Joins with Taylor Swift. This course merges the charm of Taylor's music with the thrill of data analysis, creating an engaging learning experience for you.

We are about to dive deep into the world of SQL JOINs, connecting tables in complex but meaningful ways, much like notes are bound together to form a melody.

Our tool of choice for this course is MySQL, a popular database management system used globally. However, if you are planning on using a different SQL-based system, don't worry - the concept of JOINs remains the same across all platforms.

Brief Dataset Description

Without any further ado, let's introduce our dataset, which is inspired by the discography of Taylor Swift and contains three main tables. Below are some sample rows to give you an idea of the structure starting from the simplest table:

Albums Table

AlbumIDAlbumNameReleaseDate
22Speak Now (Deluxe Edition)2010-10-25
23Speak Now2010-10-25
24Fearless Platinum Edition2008-11-11
25Fearless2008-11-11

Albums table contains all of Taylor's albums including release dates.

Songs Table

SongIDAlbumIDNameTrackNumberURIPopularityDurationMS
0vqI4ZIMuifeKeItGiWbPj19Starlight15spotify:track:0vqI4ZIMuifeKeItGiWbPj40217826
0vvt4IZOMkRug195S4MUq022If This Was A Movie16spotify:track:0vvt4IZOMkRug195S4MUq046234546
0wavGRldH0AWyu2zvTz8zb6Sweet Nothing12spotify:track:0wavGRldH0AWyu2zvTz8zb73188496
0XfOV7qY3834QpFVwOb6CC19Treacherous3spotify:track:0XfOV7qY3834QpFVwOb6CC41240773

This table lists Taylor Swift's songs, linking them to their albums, and includes details about track numbers, Spotify URIs, popularity ratings, and song lengths in milliseconds.

Sign up

Join the 1M+ learners on CodeSignal

Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal