Your question is Top 3 Outages Per Region. Start with the requirements and the two tables on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Nokia NetAct stores network outage events that operations teams use to identify recurring reliability problems. Write a PostgreSQL query to find the three longest completed outage events for every region.
outage_events to regions and display the region name.started_at and ended_at.outage_id.regions.| Column | Type | Description |
|---|---|---|
| region_idPK | INTEGER | Unique regional identifier |
| region_name | VARCHAR(100) | Nokia network operating region |
| Column | Type | Description |
|---|---|---|
| outage_idPK | INTEGER | Unique outage event identifier |
| region_id | INTEGER | References regions.region_id |
| outage_type | VARCHAR(40) | Network outage classification |
| started_at | TIMESTAMP | Outage start timestamp |
| ended_at | TIMESTAMP | Recovery timestamp, NULL for ongoing outages |