The following examples demonstrate how to replace the values of the specified columns by the values of the specified expressions for all rows of the table that satisfy the search_condition:
update emp
set salary = 1.1 * salary
where dept in
(select dno
from dept
where mgr in
(select eno
from emp
where ename = 'Smith'));
update emp
set salary = null
where dept in
(select dno
from dept
where mgr in
(select eno
from emp
where ename = 'Smith'));
update employee e
from dept d
set salary = d.std_raise * e.salary
where e.name like 'e%' and d.dname = e.dname