SELECT a.yearly,a.income income,a.income-b.income profit
FROM financial a,financial b
WHERE a.yearly-1=b.yearly
ORDER BY a.income-b.income DESC
(没看前面,已经有了,hoho)
select f2.yearly, f2.income, (f2.income - (select f1.income from financial f1 where f1.yearly=(f2.yearly-1))) as ic
from financial f2
where f2.yearly>2001
order by ic desc