Write a SQL query using window functions such as ROW_NUMBER(), RANK(), or DENSE_RANK() to identify the top-performing business units at Genpact clients.
Use total billable revenue as the performance measure and include tied units at the second rank.
client_name, business_unit_name, total_billable_revenue, and performance_rank.| Column | Type | Description |
|---|---|---|
| client_idPK | INT | Unique client identifier |
| client_name | VARCHAR(100) | Genpact client name |
| Column | Type | Description |
|---|---|---|
| business_unit_idPK | INT | Unique business unit identifier |
| client_id | INT | Client owning the business unit |
| business_unit_name | VARCHAR(120) | Business unit name |
| Column | Type | Description |
|---|---|---|
| metric_idPK | INT | Unique performance record identifier |
| business_unit_id | INT | Business unit measured |
| metric_month | DATE | Month represented by the record |
| billable_revenue | NUMERIC(12,2) | Monthly billable revenue |