select a.A1,a.A2,b.B1 from TABLEA a, TABLE b
where  a.A1=b.A1 and group by a.A1 having b.B1>=B1;
不知道行不行,可以试一下。