update BANKFROZENFLOW a set (a.Companycode,a.departmentid)=
(select nvl(b.Companycode,1), nvl(b.departmentid,1) from SECUACCINFO b where b.bankaccount=a.bankaccount)