日期:2014-05-18 浏览次数:20671 次
select * from t1 t where not exists(select 1 from t1 where company=t.company and [year]>t.[year])
------解决方案--------------------
select [year],company,tax from t1 where tax=(select max(tax) from t1 t2 where t2.company=t1.company) order by t1.company