I have only 1 table named EMPLOYEE on my database with the 3 following collumns:
Employee_Name, Employee_Salary, Department_ID
Try this also:
Select e.ename, e.sal, e.deptno from (select e.*, avg(sal) over (partition by deptno) as avgsalary from EMP_TABLE e ) e where e.sal > e.avgsalary;