update a
set (f3,f4) = 
(select b.f3,b.f4 from (select f1,f2,f3,f4 from c) b
where a.f1=b.f2 and a.f2=b.f2);?