1SELECT
2 first_name,
3 last_name,
4 salary
5FROM
6 employees
7WHERE
8 salary = ANY (
9 SELECT
10 AVG(salary)
11 FROM
12 employees
13 GROUP BY
14 department_id)
15ORDER BY
16 first_name,
17 last_name,
18 salary;
19Code language: SQL (Structured Query Language) (sql)