New
The Learning module is now live
See what's new
×
Question Bank
Learning
NEW
Pricing
Blog
Forum
HOT
JobRadar
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
SQL Question
AI Insights
Quick Summary
Combine pre-aggregated historical play counts with individual weekly listening events.
Filter new events to a specific cutoff date and treat each event as a single play.
Aggregate totals per user-song pair and sort results by descending play count.
What This Tests
Combining datasets with different granularities into a unified record set.
Applying temporal filters to isolate relevant time periods.
Rolling up counts across combined records using aggregation.
Ordering output based on computed aggregate values.
Common Patterns
Union
Aggregation
Groupby
Sort
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Accepted
9
/17
Acceptance Rate
52.9%
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Run
Submit
Test Cases
SQL Schema
Pandas Schema
Input
-
Output
-
Expected
-