Last Updated: May 12, 2026
For this exercise, we will work with below data:
Find all users who have streamed at least one track. Use EXISTS against the streams table. Show the username, ordered alphabetically.
Find users who do not follow any artist. Use NOT EXISTS against artist_follows. Show the username.
Find artists who have at least one album that was streamed by a premium user. Use EXISTS joining through albums, tracks, streams, and users. Show the artist name ordered alphabetically.
Find tracks that are not on any playlist. Use NOT EXISTS against playlist_tracks. Show the track title.
Find artists who have not released any album after 2024-01-01. Use NOT IN against albums.artist_id, which is NOT NULL and therefore safe. Show the artist name ordered alphabetically.