Update in Oracle with Join and Multiples tables

SQL> update (select ename, dname
          from emp e, dept d
         where e.deptno = d.deptno
           and empno = 7788)
   set ename = 'X', dname = 'Y'