Amazon workforce planning needs to identify employees whose salary is greater than the average salary for their department. Write a PostgreSQL query using the employee and department data.
| Column | Type | Description |
|---|---|---|
| employee_idPK | INT | Unique employee identifier |
| employee_name | VARCHAR(100) | Employee name |
| department_id | INT | References departments.department_id |
| salary | DECIMAL(12,2) | Annual employee salary |
| Column | Type | Description |
|---|---|---|
| department_idPK | INT | Unique department identifier |
| department_name | VARCHAR(100) | Department name |