SQLQuokka
Start practicing
QuestionsLearnSandboxFeaturesRoadmapFAQ

Amazon: Repeat Buyers

Unsolved

Customer repeat purchase behavior is a primary indicator of marketplace health. Write a query to find all customers who have placed at least 2 orders. For each repeat buyer, return `customer_id`, `customer_name`, and `order_count`. Order the results by `order_count DESC`, and by `customer_id ASC` in case of ties.

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
8 rows total
Ready. Type a query to see live execution.
Clause: Auto-Sync · AlaSQL Engine