update A set A1=(select B1 where B3=A.A3 and B2>0)
update A set A2=(select B1 where B3=A.A3 and B2<0)