Write a SQL query to analyze operational performance by client segment at EXOS, including joins between client, activity, and satisfaction tables, and summarize key metrics by month.
Use the provided tables and include activities with a matching client. Satisfaction data may be missing. Report one row per segment and activity month.
Output
- Columns:
segment, activity_month, activity_count, active_client_count, avg_duration_minutes, avg_satisfaction_score, satisfaction_response_pct, previous_month_activity_count, activity_change_pct
- Include the requested monthly segment metrics, ordered by
segment, then activity_month.