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.
Laukiamo rezultato pavyzdys
Taip atrodo teisingas atsakymas — jo eilučių skaičius yra savitas, jis neprivalo sutapti su schemos lentelėmis.
| user_id |
|---|
| 1 |
| 2 |
| 3 |
Prisijunkite, kad matytumėte pateikimų istoriją
PrisijungtiPrisijunkite, kad naudotumėte DI mentorių
Prisijungti