#1050

Failed Payment Total

Step 2: for the stuck orders from step 1, total the payments with status = 'failed'. Return one row with total; if there are no such payments, total must be 0.

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.

total
21

Il risultato della tua query apparirà qui