Write a SQL query to find the top 5 customers with the highest increase in incidents over the last 30 days.
Compare each customer's incident count in the last 30 days with the immediately preceding 30-day period. Include customers with no incidents in either period.
customer_id, customer_name, previous_30_day_incidents, last_30_day_incidents, and incident_increaseincident_increase descending, then customer_name ascending, then customer_id ascending| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique customer identifier |
| customer_name | VARCHAR(150) | Customer display name |
| account_status | VARCHAR(20) | Current customer account status |
| Column | Type | Description |
|---|---|---|
| incident_idPK | INT | Unique incident identifier |
| customer_id | INT | Customer associated with the incident |
| created_at | TIMESTAMP | Incident creation timestamp |
| severity | VARCHAR(20) | Incident severity classification |
| resolved | BOOLEAN | Whether the incident has been resolved |