Skip to main content
All Problems
medium0% acceptance

Patients Who Have Never Had a Prescription

Find all patients who have never received a prescription across any of their visits. Return patient full name, email, and date_of_birth. Use a subquery approach. Order by last_name, first_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