update tbl1 t1 set b=
(select b from tbl1 t2 where t1.b is not null and b<>'' and t1.a=t2.a where rownum<2)
where b is null or b=''