SQL practice / Spotify
Free SQL interview practice

Spotify SQL interview questions. All free.

12 SQL practice questions in our Spotify collection, part of our 188-question bank across 23 companies. Write SQL against practice datasets and get checked in your browser. Free, no card or trial.

No account needed to start. Draft SQL stays in this browser; create an account to sync solved history.

1 Easy · 6 Medium · 5 Hard

Independent practice resource. Not affiliated with or endorsed by Spotify.

Inside the Spotify set

SQL topics you can practice.

These topics come from the questions in this set. Pick one to open the matching problems.

Easy · 5 min

Top 5 Artists by Song Appearances in Featured Playlists

Find the top 5 artists by count of song appearances in featured (is_featured = TRUE) playlists. Return artist_id, artist_name, song_count, and song_titles (comma-separated, alphabetical). Order by song_count descending (break ties alphabetically by artist name).

Tables: playlist_songs, songs, artists, playlists
Medium · 10 min

Cumulative Song Plays per User Over Time

Calculate cumulative play count for each premium user by day in March 2026. Return user_id, stream_date, daily_play_count, and cumulative_play_count. Order by user_id, stream_date.

Tables: user_streams, users
The bank

Spotify SQL questions. Start typing SQL.

12 Spotify problems, each with its own dataset. Click one and you’re in the workspace, free, right in your browser.

How it works

Solve in the browser. Checked instantly.

  1. 1
    Pick a problemPractice questions for data science and analytics interviews, each with its own tables, difficulty, and time target.
  2. 2
    Write and run SQLA full database engine loads in the tab. No setup, nothing to install — query the practice dataset immediately.
  3. 3
    Submit for a verdictPass and move to the next problem. Miss and you unlock the expected output and a reference solution.
Top 5 Artists by Song Appearances in Featured PlaylistsSpotify

Your dataset

playlist_songs

playlist_id (INTEGER) · song_id (INTEGER) · date_added (DATE) · position_in_playlist (INTEGER)

songs

song_id (INTEGER) · artist_id (INTEGER) · title (VARCHAR) · release_date (DATE)

artists

artist_id (INTEGER) · name (VARCHAR)

playlists

playlist_id (INTEGER) · name (VARCHAR) · playlist_type (VARCHAR) · is_featured (BOOLEAN)

Try this Spotify question
12
Spotify questions
188
questions in the full bank
$0
free access

Solve one now. Build your solved history.

Start free, no account needed. When you create one, everything you’ve solved comes with you — solved marks, streaks, and concept ratings on your dashboard.

Practice Spotify SQL free

Create a free account to sync solved history →