select * from B
where XM not in (select XH from A)