Search ⌘K
Spotify
Spotify

Interview Core Track · Hard · 35 min

Products Bought Together

Spotify is reviewing products bought together through a trend check. Return each pair of products that were purchased together in the same order. Output prod...

Interview Core Track
Hard
35 min
query basics
joins

Company labels are directional practice context, not official interview guidance.

Timer 00:00
Back to practice

Objective

Practice query basics through a Spotify-tagged business scenario.

Approach

Use this track to improve speed, edge-case handling, and accuracy under timed conditions.

Company context

Company labels are directional practice context, not official interview guidance.

Prereq: query basics
Prereq: filtering

Spotify is reviewing products bought together through a trend check. Return each pair of products that were purchased together in the same order. Output product_id_1 and product_id_2 sorted by both columns.

Pro question
This is a Pro question

Upgrade to Pro to unlock this prompt, the SQL workspace, and all 254 problems.

Upgrade to Pro — unlock all 254 problems
Editor
SQL workspace

Run queries against the protected question data, then submit once the result shape looks right.

Sign in to run SQL

Create a free account or sign in before running queries against protected question data.