update table  set fmonth = Add_months(fmonth, '1') 
where rowid in                  
(
select t1.rowid from 
 (select * from table where to_char(a,'mm') = to_char(sysdate,'mm')- 1) t1,
 (select * from table where to_char(a,'mm') = to_char(sysdate,'mm') ) t2
where t1.f1 != t2.f1 and t1.f2 != t2.f2  and t1.f3 != t2.f3
)