select y.F,x.B from 表1 x left join 表2 y on x.A=y.E order by x.B
光用sql不好做的,要么导出来用excel来做,要么用某个语言来操作,比如php
这样的么