#970

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

Your query result will appear here