SpinTheMic
Pro

Interview practice question

Repeat purchase rate within 30 days

Data Analyst · SQL for Analytics · Intermediate

How do you calculate the share of first-time buyers who make a second purchase within 30 days?

What a strong answer covers

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

  • First order date per customer.
  • Second order via ROW_NUMBER or MIN after first.
  • Check if within 30 days.
  • Exclude customers with < 30 days of history.
  • Rate = repeaters / first-time buyers.
Practise this topic

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

See all topics