#1066

Buyers Without Repeats

CRM needs a list of users who have at least one order. Do not repeat the same buyer, and guest orders without user_id should produce one separate row. Return user_id in ascending order, placing the empty value last.

Exempel på förväntad utdata

Så här ser ett korrekt svar ut — radantalet är dess eget, det behöver inte matcha schematabellerna.

user_id
1
2
3

Ditt frågeresultat visas här