Given an employees table (id, name, dept_id, salary), write a SQL query that returns the number of employees earning more than the average salary of their own department.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.