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