Stripe needs a monthly consolidated report. You are given two tables: transactions (all initial payment attempts) and chargebacks (disputed payments).
Write an SQL query to find for each month and country:
- The number of approved transactions and their total amount.
- The number of chargebacks and their total amount.
Rules:
- A Chargeback event belongs to the month it happened (from the chargebacks table), not the month of the original transaction.
- If a month/country pair has no approved transactions and no chargebacks, do not include it.
- Return columns: month, country, approved_count, approved_amount, chargeback_count, chargeback_amount.
- Results must be sorted by month in ascending order.