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
| AlbumID | AlbumName | ReleaseDate |
|---|---|---|
| 22 | Speak Now (Deluxe Edition) | 2010-10-25 |
| 23 | Speak Now | 2010-10-25 |
| 24 | Fearless Platinum Edition | 2008-11-11 |
| 25 | Fearless | 2008-11-11 |
Albums table contains all of Taylor's albums including release dates.
Songs Table
| SongID | AlbumID | Name | TrackNumber | URI | Popularity | DurationMS |
|---|---|---|---|---|---|---|
| 0vqI4ZIMuifeKeItGiWbPj | 19 | Starlight | 15 | spotify:track:0vqI4ZIMuifeKeItGiWbPj | 40 | 217826 |
| 0vvt4IZOMkRug195S4MUq0 | 22 | If This Was A Movie | 16 | spotify:track:0vvt4IZOMkRug195S4MUq0 | 46 | 234546 |
| 0wavGRldH0AWyu2zvTz8zb | 6 | Sweet Nothing | 12 | spotify:track:0wavGRldH0AWyu2zvTz8zb | 73 | 188496 |
| 0XfOV7qY3834QpFVwOb6CC | 19 | Treacherous | 3 | spotify:track:0XfOV7qY3834QpFVwOb6CC | 41 | 240773 |
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.
