#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.

Esempio di output atteso

Ecco come appare una risposta corretta — il suo numero di righe è a sé stante, non deve corrispondere alle tabelle dello schema.

id
12

Il risultato della tua query apparirà qui