Interview Prep
Real company-style SQL problems from data analyst and data science loops. Open one, write your solution in the editor, then check it against a worked answer and the insight most candidates miss.

Histogram of TweetsTwitterAggregationSubquerieseasy+20 XPNot started
Inactive TradersRobinhoodAnti-joinDate filteringeasy+20 XPNot started
Average Shares Per PostMetaJOINsAggregationeasy+20 XPNot started
Highly Rated ListingsAirbnbJOINsHAVINGeasy+20 XPNot started
Sending vs Opening SnapsSnapchatConditional Aggregation+2medium+35 XPNot started
Underperforming DriversLyftCTEsWindow functions+1medium+35 XPNot started
Category ExplorersAmazonMulti-table JOINHAVING+1medium+35 XPNot started
Top Monthly SearchesGoogleCTEsDENSE_RANK+1medium+35 XPNot started
Currently Active PagesMetaWindow functions+1medium+35 XPNot started
Platform SplitNetflixUNION+1medium+35 XPNot started
Premium Artist DiversitySpotifyCOUNT DISTINCTHAVING+1medium+35 XPNot started
7-Day Rolling Listen AverageSpotifyRolling window+1medium+35 XPNot started
Longest Trading StreakCoinbaseGaps and islandsCTEs+1hard+50 XPNot started
Viewership Drop AlertNetflixRolling windowCTEs+1hard+50 XPNot started
Vacant Days in 2021AirbnbDate arithmeticLEFT JOIN+1hard+50 XPNot started