Write a SQL query to identify patients who have had more than a specific number of virtual consultations within a thirty-day window.
Assume the specific threshold is more than three completed virtual consultations. A thirty-day window is inclusive of consultations occurring exactly thirty days apart.
patient_id and patient_name.patient_id in ascending order.| Column | Type | Description |
|---|---|---|
| patient_idPK | INT | Unique patient identifier |
| patient_name | VARCHAR(100) | Patient's display name |
| Column | Type | Description |
|---|---|---|
| consultation_idPK | INT | Unique consultation identifier |
| patient_id | INT | Patient associated with the consultation |
| consultation_at | TIMESTAMP | Consultation start timestamp |
| modality | VARCHAR(20) | Consultation modality, such as virtual or in_person |
| status | VARCHAR(20) | Consultation status |