Supermicro’s hardware analytics team monitors component validation tests across server systems. Write a PostgreSQL query that calculates monthly failure rates by component and identifies the worst-performing components within each month.
test_status of PASS or FAILED; exclude inconclusive or missing statuses.failed_tests / total_tests * 100, rounded to two decimal places.| Column | Type | Description |
|---|---|---|
| component_idPK | INT | Unique component identifier |
| component_name | VARCHAR(80) | Supermicro component name |
| component_family | VARCHAR(50) | Component category |
| Column | Type | Description |
|---|---|---|
| test_idPK | INT | Unique validation test identifier |
| component_id | INT | Tested component identifier |
| tested_at | TIMESTAMP | Test completion timestamp |
| test_status | VARCHAR(20) | Validation result status |