New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
JobRadar
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
DoorDash
SQL Question
AI Insights
Quick Summary
Aggregate order counts per restaurant to establish baseline volume.
Apply a window-based bucketing function to isolate the lowest-volume quartile.
Join the filtered restaurants back to raw transactions to count unique locations and customers.
What This Tests
Window functions for discrete data partitioning
Multi-step aggregation and relational joins
Behavior of ranking functions with tied values
Distinct counting across filtered subsets
Common Patterns
Window Function
Ranking
Aggregation
Inner Join
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
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
-