Orders With a User
The product team is checking the share of guest orders. Return one row: total for all orders, and with_user for orders where user_id is present.
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.
| total | with_user |
|---|---|
| 7 | 6 |
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign in