It looks like that what drives the process is actually the value of "v_bal" and not the "BAL" value on officeN columns then... if "v_bal" <= 0 then just set either NULL or whatever value is needed on the four OfficeN columns for the affected row.