Write a SQL query to track monthly operational KPIs by region at the United Nations, including joins across program, finance, and staffing tables, and calculate month-over-month changes.
Use the supplied tables and include data from January through March 2025.
Output
- One row per region and month, with
region, month_start, program_count, total_expenditure_usd, total_active_staff, expenditure_mom_change_pct, and staff_mom_change_pct.
- Include all regions with finance records in the period. Return
NULL for a percentage change when there is no prior value or the prior value is zero.
- Order by
region, then month_start ascending.