Guests at the End
Operators need a list of all orders: orders with higher user_id first, while guest orders without user_id must appear at the very end. For the same user_id, sort by ascending id. Return id and user_id.
Uzorak očekivanog izlaza
Ovako izgleda ispravan odgovor — broj redaka je njegov vlastiti, ne mora se podudarati s tablicama sheme.
| id | user_id |
|---|---|
| 14 | 4 |
| 13 | 3 |
| 12 | 2 |
Prijavi se da vidiš povijest predaja
PrijavaPrijavi se da koristiš AI mentora
Prijava