Practice · medium · dataset: ecom

Customers with exactly one order

Find customers who have placed exactly one order. Return customer_id, email, and order_count, sorted by customer_id ascending.

Tables available

Table Columns
customers customer_id, email, country, signup_date
orders order_id, customer_id, order_date, status, channel

Customers with no orders and customers with two or more orders are excluded.

⌘/Ctrl + Enter to grade

Write a query, then grade it.

Hints

Try it first. Reveal a hint only when you are stuck.