Your question is Top Providers by Region. Start with the requirements and the two 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.
Covera Health wants to monitor provider utilization across regions using patient visit data. Write a PostgreSQL query that identifies the highest-volume providers for each region and calendar month.
providers to patient_visits using provider_id.status = 'completed' and a non-null patient_id.provider_id.| Column | Type | Description |
|---|---|---|
| provider_idPK | INTEGER | Unique provider identifier |
| provider_name | VARCHAR(100) | Provider display name |
| region | VARCHAR(50) | Covera Health service region |
| Column | Type | Description |
|---|---|---|
| visit_idPK | INTEGER | Unique visit identifier |
| provider_id | INTEGER | Provider associated with the visit |
| patient_id | INTEGER | Patient associated with the visit |
| visit_date | DATE | Date on which the visit occurred |
| status | VARCHAR(20) | Visit completion status |