Write a SQL query to analyze operational performance across multiple systems by joining tables for users, activities, and outcomes, then aggregating results by team and month.
Use the supplied tables and include activities without outcomes. Treat a missing user team as Unassigned and calculate success rate among activities with recorded outcomes.
Output
- One row per team and calendar month, with
team, activity_month, distinct_systems, total_activities, activities_with_outcomes, successful_outcomes, success_rate_pct, avg_resolution_hours, and success_rate_change_pct_points.
- Include months containing activities even when no outcome exists. Sort by team, then month.