Write a SQL query to analyze operational performance by joining transactions, customers, and support tickets, then aggregate by week to identify trends in volume, resolution time, and failure rate.
Use the provided tables and include weeks represented by either transactions or support tickets. Exclude unresolved tickets from average resolution time, but retain their week in the output.
Output
- One row per week, with
week_start, transaction_volume, ticket_volume, avg_resolution_hours, and failure_rate_pct.
- Include weeks with only transactions or only tickets, use zero for missing volumes and failure rates, and sort by
week_start ascending.