Write a SQL query to analyze fraud cases by team and week, including joins across case, agent, and outcome tables, and calculate weekly resolution rates.
Use the provided tables and include cases even when an agent or outcome is missing. Treat an outcome with status Resolved as resolved.
Output
- One row per team and week, using the case opened date for the week.
- Columns:
team_name, week_start, total_cases, resolved_cases, and resolution_rate_pct.
- Include all cases, label missing teams as
Unassigned, calculate the rate as a percentage rounded to two decimal places, and order by week_start, then team_name.