sele 表a.xh,表a.sbsl as sl from 表a into table a
sele 表b.xh,表b.bksl as sl from 表b into table b
clos tabl
use a
appe from b
select xh,max(sl) from a group by xh
sele 表a.xh,表a.sbsl as sl from 表a into table a
sele 表b.xh,表b.bksl as sl from 表b into table b
clos tabl
use a
appe from b
select xh,sum(sl) as sl from a group by xh into table c