Write a SQL query to find the second-highest resource-consuming server from a telemetry log table, grouped by data center location.
Calculate each server's total resource consumption within its data center. Treat tied second-place totals as qualifying results, and ignore NULL resource values.
data_center_location, server_id, total_resource_consumed| Column | Type | Description |
|---|---|---|
| telemetry_idPK | INT | Unique telemetry record identifier |
| server_id | VARCHAR(50) | Identifier of the monitored server |
| data_center_location | VARCHAR(100) | Data center where the server is located |
| resource_consumed | DECIMAL(12,2) | Resource units consumed in the telemetry interval |
| recorded_at | TIMESTAMP | Time when the telemetry was recorded |