Optum Financial needs a monthly review of unusually expensive claims. Write a PostgreSQL query that identifies the top 10% of eligible claims for May 2025 based on total paid amount.
claim_date falls from 2025-05-01 through 2025-05-31, using an inclusive lower bound and exclusive upper bound.PAID or PARTIALLY_PAID and matching member and plan records.| Column | Type | Description |
|---|---|---|
| claim_idPK | INT | Unique claim identifier |
| member_id | INT | Reference to the covered member |
| plan_id | INT | Reference to the benefit plan |
| claim_date | DATE | Claim submission date |
| status | VARCHAR(30) | Claim processing status |
| Column | Type | Description |
|---|---|---|
| claim_line_idPK | INT | Unique claim line identifier |
| claim_id | INT | Reference to the claim |
| paid_amount | DECIMAL(12,2) | Amount paid for the claim line |
| Column | Type | Description |
|---|---|---|
| member_idPK | INT | Unique member identifier |
| member_name | VARCHAR(100) | Member display name |
| Column | Type | Description |
|---|---|---|
| plan_idPK | INT | Unique benefit plan identifier |
| plan_name | VARCHAR(100) | Benefit plan name |