Skip to main content
All Problems
hard0% acceptance

Doctors Who Have Every Visit Status

Find doctors who have visits in every possible status (completed, scheduled, cancelled, no_show). Return the doctor's first name, last name, and the count of distinct statuses they have.

Schema

🔑idINT
first_nameTEXT
last_nameTEXT
specialtyTEXT
🔗department_idINT
emailTEXT
phoneTEXT
hire_dateTEXT
salaryREAL
postgresql

Run your query to see results

Press Ctrl + Enter to execute