update cdma_record_accum_new set account_type = '1'  where account_type='0' AND rowid in 
(select a.rowid from cdma_record_accum_new a, sett_cycle s  where 
s.sett_cycle_id=a.account and s.cycle_end_date < sysdate
)