Loading…
Finance reports cash, not orders. For each calendar year, calculate successful payment amounts (payment_status = succeeded) by the year of paid_at, and refunds by the year of refunded_at. Net payments equal minus .
paymentsrefundsReturn four columns: year, payments, refunds, and net_payments, each amount rounded to 2 decimals. Order by year.
Create a free account to save your progress and reveal the worked answer for this free exercise. The complete practice library is available with Practice Pass or Mastery.