Skip to main content
All Problems
easy0% acceptance

List All Patients

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.

Schema

🔑idINT
first_nameTEXT
last_nameTEXT
date_of_birthTEXT
genderTEXT
emailTEXT
phoneTEXTNULL
blood_typeTEXT
cityTEXT
stateTEXT
🔗insurance_idINTNULL
created_atTIMESTAMP
postgresql

Run your query to see results

Press Ctrl + Enter to execute