Tell me about your experience writing SQL queries for healthcare scenarios at Oscar Health, including how you handle joins, filters, and aggregations.
Using the supplied member, claim, and provider data, return a claims summary for active members and qualifying 2025 paid claims.
member_id, member_name, state, paid_claim_count, total_paid_amount, distinct_provider_count, and spend_band.total_paid_amount descending, then member_id ascending.| Column | Type | Description |
|---|---|---|
| member_idPK | INT | Unique member identifier |
| member_name | VARCHAR(100) | Member display name |
| state | VARCHAR(2) | Member state abbreviation |
| is_active | BOOLEAN | Whether the member is currently active |
| Column | Type | Description |
|---|---|---|
| claim_idPK | INT | Unique claim identifier |
| member_id | INT | Referenced member identifier |
| provider_id | INT | Referenced provider identifier |
| service_date | DATE | Date healthcare service was provided |
| claim_status | VARCHAR(20) | Claim processing status |
| paid_amount | DECIMAL(12,2) | Amount paid for the claim |
| Column | Type | Description |
|---|---|---|
| provider_idPK | INT | Unique provider identifier |
| provider_name | VARCHAR(120) | Provider or facility name |
| specialty | VARCHAR(80) | Provider clinical specialty |