Can you provide an example of a SQL query you wrote to analyze operational data?
Using the provided tables, write a query that reports monthly Q1 2025 incident performance for support teams. Include operational incidents with valid tracked statuses and require at least two incidents for a team-month.
team_name, month_start, total_incidents, resolved_incidents, avg_resolution_hours, and resolution_rate_pct2025-01-01 00:00:00 inclusive through 2025-04-01 00:00:00 exclusive.Resolved, Open, or Investigating.resolved_incidents only for status Resolved, average resolution_hours only for resolved incidents, and calculate the rate as resolved divided by total times 100.avg_resolution_hours and resolution_rate_pct to two decimal places.avg_resolution_hours when a team-month has no resolved incidents.month_start ascending, then team_name ascending.| Column | Type | Description |
|---|---|---|
| team_idPK | INT | Unique support team identifier |
| team_name | VARCHAR(100) | Support team name |
| Column | Type | Description |
|---|---|---|
| incident_idPK | INT | Unique incident identifier |
| team_id | INT | Assigned support team identifier |
| created_at | TIMESTAMP | Incident creation timestamp |
| status | VARCHAR(30) | Current incident status |
| resolution_hours | DECIMAL(10,2) | Elapsed hours until resolution |