Write a SQL query using window functions to rank clinical sites by weekly enrollment growth within each region.
Use the weekly enrollment count for each site and compare it with that site's immediately preceding reported week. Include only rows with a preceding week.
region, week_start, site_id, site_name, weekly_enrollments, previous_week_enrollments, enrollment_growth, and growth_rank.region, week_start, growth_rank, and site_id.| Column | Type | Description |
|---|---|---|
| site_idPK | INT | Unique clinical site identifier |
| site_name | VARCHAR(100) | Clinical site name |
| region | VARCHAR(50) | Geographic or operational region |
| Column | Type | Description |
|---|---|---|
| site_id | INT | Clinical site identifier |
| week_start | DATE | Start date of the reporting week |
| enrollment_count | INT | Number of enrollments reported for the site and week |