Successful Payment, Pending Order
If an order has a payment with status = 'success', the order should not still be in status = 'pending'. Find those orders, return each id once, and sort 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 |
|---|
| 13 |
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign in