Guest Orders as 0
The operations report for orders must show the order number and user identifier. If a guest order has no user_id, the report should show 0. Return id and uid, one row per order, sorted by id.
Expected output sample
This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables.
| id | uid |
|---|---|
| 10 | 1 |
| 11 | 1 |
| 12 | 2 |
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign in