SQL Join Employee Salaries and Average Department Salary with Window Functions

Asked at Wayfair · Coding Questions · Difficulty: Medium · Last asked Jul 15, 2026

You have two tables `employees` and `salaries`, which contain employees' basic information and their salary information, respectively.

Loading the problem…