Chapter 2 · Filtering
12. Completed Visits After a Date
Easy10 XPHealthcare
Hospital administration wants to review all completed visits from 2024 onward. Return the visit id, visit_date, and diagnosis for all visits with status 'completed' and visit_date on or after '2024-01-01'.
Tables
- PKidINT
- FKpatient_id→ patients.idINT
- FKdoctor_id→ doctors.idINT
- visit_dateTEXT
- diagnosisTEXT
- notesTEXT
- follow_up_dateTEXT
- statusTEXT
Need help?
Ask Sol
AI tutor — looks at your current query and nudges you, without spoiling the answer.
Solution
Try the hints first — solving it yourself is what makes it stick.