Skip to main content
All Problems
hard0% acceptance

Patients with All Visit Status Types

Find patients who have had visits in every possible status ('scheduled', 'completed', 'cancelled', 'no_show'). Return patient first_name, last_name, and the count of distinct statuses. 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