Write a SQL query to retrieve the top 10 patients based on treatment outcomes.
Treat each non-NULL outcome score as a valid treatment outcome and calculate each patient's average score. Return only patients with at least one valid outcome.
patient_id, patient_name, average_outcome_score, and treatment_count.patient_id ascending.| Column | Type | Description |
|---|---|---|
| patient_idPK | INT | Unique patient identifier |
| patient_name | VARCHAR(100) | Patient's full name |
| date_of_birth | DATE | Patient date of birth |
| Column | Type | Description |
|---|---|---|
| treatment_idPK | INT | Unique treatment identifier |
| patient_id | INT | Patient receiving the treatment |
| treatment_type | VARCHAR(80) | Type of treatment provided |
| treatment_date | DATE | Date the treatment occurred |
| outcome_score | DECIMAL(5,2) | Numeric treatment outcome score |