We use analytics and advertising cookies to understand how the site is used and whether our ads on Facebook, Instagram and Microsoft search (Bing) work. They are set only if you accept. See our Privacy Policy for details.
Return the 'name' and 'salary' of every employee whose 'salary' is strictly greater than the average salary of their own department. Use a correlated subquery.