Skip to main content
All Problems
medium0% acceptance

Doctors Earning Above Average

Find all doctors whose salary is above the overall average salary. Return their first name, last name, specialty, and salary, ordered by salary descending.

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