Your question is Monthly Failure Rates by Component. 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.
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 |