Chapter 2 · Filtering
13. Search Visits by Diagnosis
Easy10 XPHealthcare
A researcher is studying diabetes-related visits. Find all visits whose diagnosis contains the word 'Diabetes'. Return the visit id, visit_date, and diagnosis.
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.