Skip to main content
Admissions guidance, study banks, and career tools โ€” get started on Shalyam

Customers With At Least Two Orders

Return the customer_id of every customer who has placed at least two orders.

Table schema

Orders(id INT PRIMARY KEY, customer_id INT, amount INT)

Sample data

id | customer_id | amount
1 | 1 | 100
2 | 2 | 200
3 | 1 | 150
4 | 3 | 50

Discussion

No discussions yet.

Rewards ยท v2.1

Join Shalyam Newsletter

Get exclusive insights with every issue: education, research and innovation news.

One email a week. Unsubscribe any time.