Skip to main content
All Problems
medium0% acceptance

Patients Who Have At Least One Prescription

The pharmacy needs a list of patients who have received at least one prescription. Use EXISTS to find them. Return first_name, last_name, and email. Order 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