Chapter 1 · SELECT Basics
06. List All Patients
Easy10 XPHealthcare
The front desk needs a roster of all patients. Write a query that returns the first name, last name, and email of every patient, sorted alphabetically by last name.
Tables
- PKidINT
- first_nameTEXT
- last_nameTEXT
- date_of_birthTEXT
- genderTEXT
- emailTEXT
- phoneTEXT
- blood_typeTEXT
- cityTEXT
- stateTEXT
- FKinsurance_id→ insurance.idINT
- created_atTIMESTAMP
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.