Doctors above average salary
mediumReturn the names and salaries of doctors earning above the overall average.
Hospital Database · SQLite
Run your SQL answer to see the returned rows and check it.
SELECT first_name, last_name, salary FROM doctors WHERE salary > (SELECT AVG(salary) FROM doctors) ORDER BY salary DESC;