Your question is Running 30-Day Average of Claims. 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.
GDIT healthcare claims analytics requires a daily view of prescription claim volume for each provider. Write a PostgreSQL query that calculates a rolling 30-day average, including calendar days with zero claims.
| Column | Type | Description |
|---|---|---|
| provider_idPK | INT | Unique provider identifier |
| provider_name | VARCHAR(100) | Provider display name |
| Column | Type | Description |
|---|---|---|
| claim_idPK | INT | Unique claim identifier |
| provider_id | INT | Provider associated with the claim |
| claim_date | DATE | Date the claim was submitted |
| claim_type | VARCHAR(30) | Claim classification |