Versuchen Sie dies UPDATE EMPLOYEE A SET SAL = (SELECT AVG(SAL) FROM EMPLOYEE B WHERE B.DEPTNO = A.DEPTNO);