Providence uses appointment data from its electronic health record to identify patients who were scheduled for overlapping encounters. Write a PostgreSQL query that reports each overlapping appointment pair for March 10, 2025.
scheduled, checked_in, or completed.| Column | Type | Description |
|---|---|---|
| patient_idPK | INT | Unique patient identifier |
| first_name | VARCHAR(50) | Patient first name |
| last_name | VARCHAR(50) | Patient last name |
| Column | Type | Description |
|---|---|---|
| provider_idPK | INT | Unique provider identifier |
| provider_name | VARCHAR(100) | Provider display name |
| specialty | VARCHAR(80) | Clinical specialty |
| Column | Type | Description |
|---|---|---|
| appointment_idPK | INT | Unique appointment identifier |
| patient_id | INT | Patient receiving the appointment |
| provider_id | INT | Assigned provider |
| appointment_date | DATE | Calendar date of the appointment |
| start_time | TIMESTAMP | Appointment start timestamp |
| end_time | TIMESTAMP | Appointment end timestamp |
| status | VARCHAR(20) | Appointment lifecycle status |