Skip to main content
All Problems
easy0% acceptance

Departments with More Than 4 Doctors

Management wants to identify large departments. Find all department_id values that have more than 4 doctors. Return the department_id and the doctor count.

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