Your question is Top Providers by Claim Volume. Start with the requirements and the three 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.
HiLabs CareAlign needs a regional view of provider activity based on processed claims. Write a PostgreSQL query that identifies the top three healthcare providers by claim volume within each region.
claim_status = 'Processed'.provider_id.| Column | Type | Description |
|---|---|---|
| region_idPK | INT | Unique region identifier |
| region_name | VARCHAR(50) | Name of the geographic region |
| Column | Type | Description |
|---|---|---|
| provider_idPK | INT | Unique healthcare provider identifier |
| provider_name | VARCHAR(100) | Healthcare provider name |
| region_id | INT | References regions.region_id |
| Column | Type | Description |
|---|---|---|
| claim_idPK | INT | Unique claim identifier |
| provider_id | INT | References providers.provider_id |
| claim_status | VARCHAR(20) | Current claim processing status |