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

Sagaidāmais izvades paraugs

Tā izskatās pareiza atbilde — tās rindu skaits ir pašai savs, tam nav jāatbilst shēmas tabulām.

user_id
1
2
3

Tava vaicājuma rezultāts parādīsies šeit