SpinTheMic
Pro

Interview practice question

Segmenting customers into spending tiers

Data Analyst · SQL for Analytics · Intermediate

Marketing wants customers divided into four equal-sized tiers based on last year's spending. How do you do it in SQL?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Total spend per customer.
  • NTILE(4) OVER (ORDER BY spend DESC).
  • Or PERCENT_RANK thresholds.
  • Decide on zero spenders.
  • Report tier boundaries and sizes.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics