#727

Customers who already ordered something

Marketing wants to split the base into those who hit «checkout» at least once (even if they later cancelled) and those who only signed up. Return the id and name of customers with at least one order — status doesn't matter. Sort by id.

Expected output sample

This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables.

idname
1Аня
2Боб
3Вера

Your query result will appear here

Focus radio
Paused · SomaFM · Fluid