试试这样:
select a.bh_sq, a.zcmc,a.zcly,a.bh_bgy,B.XH,b.sj_cr,b.sj_wc,b.dm_czy from ea_zcxx a,(select max(xh) from ea_lcb group by bh_sq) b where a.bh_sq=b.bh_sq;