SQLServer:select ss.字段1,ss.字段2 + tt.字段2 from
(select top 1 字段1,字段2 from a order by 字段2) ss,
(select top 1 字段1,字段2 from a order by 字段2 desc) tt
(select top 1 字段1,字段2 from a order by 字段2) ss,
(select top 1 字段1,字段2 from a order by 字段2 desc) tt
调试欢乐多
select a.xxxxx,a.abcd+b.fghi from tb1 as a,tb2 as b where a.xxxxx=b.xxxxx
还有的话就再加起来