PostgreSQL - Subqueries in PostgreSQL
You want to find departments where the highest employee salary is greater than the average salary of all employees in that department. Which query correctly uses a correlated subquery to achieve this?
d.id to get max and average salary per department, correctly implementing the condition.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions