New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
SQL Question
AI Insights
Quick Summary
Calculate monthly order counts per customer.
Exclude customers exceeding the high-frequency threshold of 30 orders.
Rank remaining customers by order count and select the top one per month.
What This Tests
Multi-step aggregation and conditional filtering
Window functions for partitioned ranking
Deterministic tie-breaking logic
Month-based date extraction and grouping
Common Patterns
Aggregation
Window Function
Ranking
Sort
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Accepted
26
/87
Acceptance Rate
29.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
-