Given a table of member clinical scores over multiple weeks, write a query to calculate the week-over-week change in their clinical improvement index.
Return every recorded member-week. If the immediately preceding week is missing, or either index is NULL, return a NULL change.
member_id, week_start, clinical_improvement_index, previous_week_index, and week_over_week_change.member_id, then week_start ascending.| Column | Type | Description |
|---|---|---|
| score_idPK | INT | Unique clinical score record identifier |
| member_id | INT | Member identifier |
| week_start | DATE | Start date of the measurement week |
| clinical_improvement_index | NUMERIC(6,2) | Clinical improvement index recorded for the member and week |