select t1.item,unit from (select item,max(date) mdate from tbname group by item) t1,tbname where t1.item = tbname.item and t1.mdate = tbname.date;

解决方案 »

  1.   

    select * from yourtable t1
    where t1.date = (select max(date) 
                      from yourtable t2
                      where t2.itme = t1.item)
      

  2.   

    to cyberflying(雁南飞) 有问题,若另一个itme有相同日期也会被查出来select a.* from table a where (a.item,a.date) in (select item,max(date) mdate from table b group by item)
      

  3.   

    楼上:
    不会错的。
    有where t2.itme = t1.item,就不会有另一个item的问题!