Write a SQL query to calculate monthly SLA attainment by client, including joins between operational and client tables and a breakdown by month at WNS. Treat records with sla_met = TRUE as attained and exclude records where sla_met is NULL from the percentage calculation.
client_name, month, and sla_attainment_pct.month as YYYY-MM, calculate attainment as a percentage rounded to two decimal places, and order by client name and month ascending.| Column | Type | Description |
|---|---|---|
| operation_idPK | INT | Unique operational record identifier |
| client_id | INT | Client associated with the operational record |
| operation_date | DATE | Date when the operational activity occurred |
| sla_met | BOOLEAN | Whether the operational record met its SLA |
| Column | Type | Description |
|---|---|---|
| client_idPK | INT | Unique client identifier |
| client_name | VARCHAR(100) | Client display name |