#1053

Payment Cleared, Status Is Old

Step 5: the reverse daily check finds orders with status = 'pending' that already have a payment with status = 'success'. Return each id once, sorted by id.

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
13

Il risultato della tua query apparirà qui