This file contains hidden or 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
/* How many albums does the artist Led Zepplin have? */ | |
SELECT COUNT(Albumid) AS totalAlbums | |
FROM albums | |
WHERE Artistid = (SELECT Artistid FROM artists WHERE name = 'Led Zeppelin') | |
/* Create a list of album titles and the unit prices for the artist Audioslave */ | |
SELECT n.Name, u.UnitPrice | |
FROM ((albums t INNER JOIN artists n | |
ON t.Artistid = n.Artistid) | |
INNER JOIN tracks u ON t.Albumid = u.Albumid) |