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

Oodatava väljundi näidis

Nii näeb õige vastus välja — selle ridade arv on omaette ega pea ühtima skeemi tabelitega.

total
21

Sinu päringu tulemus ilmub siia