How would you use SQL window functions to compute rolling survey trends and rank regions by response rate at Ipsos?
Use the regions, survey_waves, and regional_survey_metrics tables for survey waves from January through April 2025. Calculate each region's rolling three-wave response rate and its overall response-rate rank.
Output
- One row per region and available survey wave.
- Columns:
region_name, wave_month, rolling_response_rate, overall_response_rate, and region_rank.
- Include only waves in the requested period, order by
wave_month ascending and region_name ascending, and assign equal ranks to tied response rates.