SQLQuokka
Start practicing
QuestionsLearnSandboxFeaturesRoadmapFAQ

Amazon: Repeat Purchase Rate

Unsolved

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).

SQL Query Editor (Ctrl+Enter to run)
0 characters · Valid
Canonical Solution Official

Official Solution is Hidden

Try solving the question with the schema explorer and hints first. When ready, reveal the verified canonical query and step-by-step logic breakdown.

Community Q&A & Discussion

Ask questions, share alternate queries, and explore solutions

0 comments
Asked By:
🏢 Amazon

Submission History

Your recent query executions and answer checks

Execution Pipeline:
FROM customers
Full source dataset
10 rows total
Ready. Type a query to see live execution.
Clause: Auto-Sync · AlaSQL Engine