Given a dataset, write a SQL query to find the top 10 patients with the highest readmission rates.
For this exercise, a readmission is an admission occurring within 30 days after a patient's discharge. Calculate each patient's readmission rate as readmissions divided by completed admissions.
patient_id, patient_name, total_admissions, readmissions, and readmission_rate.| Column | Type | Description |
|---|---|---|
| patient_idPK | INT | Unique patient identifier |
| patient_name | VARCHAR(100) | Patient display name |
| Column | Type | Description |
|---|---|---|
| admission_idPK | INT | Unique admission identifier |
| patient_id | INT | Patient associated with the admission |
| admission_date | DATE | Date the patient was admitted |
| discharge_date | DATE | Date the patient was discharged |