Given a table of incident logs, write a query to find the average time to resolve (TTR) for high-severity incidents by team.
Use only incidents with a recorded resolution timestamp and assigned team. Calculate TTR in hours, rounded to two decimal places.
team, average_ttr_hours.| Column | Type | Description |
|---|---|---|
| incident_idPK | INT | Unique incident identifier |
| team | VARCHAR(100) | Team assigned to the incident |
| severity | VARCHAR(20) | Incident severity level |
| created_at | TIMESTAMPTZ | Timestamp when the incident was created |
| resolved_at | TIMESTAMPTZ | Timestamp when the incident was resolved |