update trequest a set a.c_fundcode=
nvl((select b.c_fundcode
from tfundcodechange b
where b.c_outfundcode=a.c_fundcode),a.c_fundcode),
a.c_sharetype=
nvl((select b.c_sharetype
from tfundcodechange b
where b.c_outfundcode=a.c_fundcode),'A')
where exists (select 1 from tagencyinfo c where c.c_agencyno=a.c_agencyno and c.c_sharetypes='A')