Paid Order Without Success
An order with status = 'paid' must have at least one payment with status = 'success'. Find orders that break this rule and return their id values in ascending order.
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 |
|---|
| 12 |
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign in