select * from 表 t
where 培训日期=(select max(培训日期) from 表 where 姓名=t.姓名)
      and 姓名='A'

解决方案 »

  1.   

    select 姓名,max(培训日期)
    from tablename
    where 姓名='A'
    group by 姓名
      

  2.   

    select top 1 * from a where 姓名='A' order by 培训日期 desc
      

  3.   

    select top 1 * from car where 姓名='A'order by 日期 desc
      

  4.   

    select * from 表 t
    where 培训日期=(select max(培训日期) from 表 where 姓名=t.姓名)
          and 姓名='A'
    select top 1 * from car where 姓名='A'order by 日期 desc