We use analytics and advertising cookies to understand how the site is used and whether our ads on Facebook and Instagram work. They are set only if you accept. See our Privacy Policy for details.
Using a CTE that computes each department's average 'salary', return the employee 'name', their department 'name' as 'department', and 'salary' for employees earning above their department average.