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
Meta
SQL Question
AI Insights
Quick Summary
Count distinct accounts per user while filtering out duplicate rows.
Map each user's account total to fixed categorical buckets.
Return all required buckets with correct counts, preserving zeros and enforcing order.
What This Tests
Aggregation and grouping with deduplication
Conditional categorization of numerical aggregates
Joining computed results with reference/sentinel tables
Preserving sparse categorical outputs
Common Patterns
Deduplication
Groupby
Transform
Left 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.7-Flash
0/2000
Run
Submit
Test Cases
SQL Schema
Pandas Schema
Input
-
Output
-
Expected
-