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
Robinhood
SQL Question
AI Insights
Quick Summary
Filter the orders dataset to retain only completed transactions.
Join the filtered orders with the users table to associate each trade with a city.
Group by city, count the completed trades, and return the top three locations sorted by volume.
What This Tests
Conditional filtering combined with multi-table joins
Group-level aggregation and counting
Deterministic sorting with tie-breaking logic
Handling edge cases such as empty result sets or insufficient data
Common Patterns
Inner Join
Aggregation
Groupby
Sort
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.7-Flash
0/2000
Run
Submit
Test Cases
SQL Schema
Pandas Schema
Input
-
Output
-
Expected
-