-
-
Save toyeiei/42efdf6cd2b3256d8ea935c5bdf018ef to your computer and use it in GitHub Desktop.
SQL for Beginner - JOIN more than two tables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- JOIN more than two tables | |
SELECT | |
artists.name, | |
albums.title, | |
tracks.name | |
FROM artists | |
JOIN albums | |
ON artists.artistid = albums.artistid | |
JOIN tracks | |
ON tracks.albumid = albums.albumid | |
WHERE artists.name = 'Aerosmith'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment