SQL - Subqueries
Given the tables
What does this query return?
employees(id, name, department, salary) and the query:SELECT e1.name FROM employees e1 WHERE e1.salary > (SELECT AVG(e2.salary) FROM employees e2 WHERE e2.department = e1.department);
What does this query return?
