Chapter 1 · SELECT Basics
08. Distinct Diagnoses
Easy10 XPHealthcare
The medical records department needs a clean list of every unique diagnosis that has been recorded. Return all distinct diagnosis values from the visits table, sorted alphabetically.
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.