Write a SQL query to find the top 5 patient providers by number of admissions in the last 12 months.
Use the provider and admission records provided. Count admissions by provider and exclude admissions outside the rolling 12-month period.
provider_name, admission_count.admission_count descending and provider_id ascending to break ties.| Column | Type | Description |
|---|---|---|
| provider_idPK | INT | Unique provider identifier |
| provider_name | VARCHAR(150) | Full provider name |
| specialty | VARCHAR(100) | Provider medical specialty |
| Column | Type | Description |
|---|---|---|
| admission_idPK | INT | Unique admission identifier |
| provider_id | INT | Provider associated with the admission |
| patient_id | INT | Patient associated with the admission |
| admission_date | DATE | Date of admission |