Doximity’s analytics team wants to monitor weekly call volume for Doximity Dialer. Write a PostgreSQL query that calculates completed telemedicine call volume and its week-over-week growth rate.
status = 'completed' and a non-null started_at.calendar_weeks, including weeks with zero completed calls.NULL for the first week and whenever the prior week has zero calls.| Column | Type | Description |
|---|---|---|
| call_idPK | INTEGER | Unique telemedicine call identifier |
| started_at | TIMESTAMP | Timestamp when the call started |
| status | VARCHAR(20) | Call outcome, such as completed or missed |
| Column | Type | Description |
|---|---|---|
| week_startPK | DATE | Monday that begins the reporting week |