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.
Exempel på förväntad utdata
Så här ser ett korrekt svar ut — radantalet är dess eget, det behöver inte matcha schematabellerna.
| id | user_id |
|---|---|
| 14 | 4 |
| 13 | 3 |
| 12 | 2 |
Logga in för att se historik över inskick
Logga inLogga in för att använda AI-mentorn
Logga in