Interview practice question
Bucketing customers by spend
Data Engineering · SQL · Beginner
Classify customers into Gold, Silver and Bronze based on their total spend.
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Aggregate total spend per customer first.
- Use CASE with clear thresholds from highest to lowest.
- Add ELSE for the lowest bucket.
- Keep thresholds in a config table if they change.
- Count customers per tier to sanity check.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.