Customer retention is a core executive KPI at Amazon. The repeat purchase rate is defined as the percentage of all registered customers who have placed 2 or more orders. Write a query to calculate this percentage rounded to 2 decimal places as `repeat_purchase_rate`. Important: Customers who have placed zero orders must be included in the total customer count (denominator).
Loading…
Try solving the question with the schema explorer and hints first. When ready, reveal the verified canonical query and step-by-step logic breakdown.
Ask questions, share alternate queries, and explore solutions
Your recent query executions and answer checks
This will insert the verified MySQL solution into your editor so you can study how each clause transforms the table.