不知道是不是这样呢select a.ID as ID, (a.num+b.num) as num from t1 a, t2 b where a.ID=b.ID order by num desc