select a.* from table a,
(select 姓名,max(开始日期) 日期 from table group by 姓名) b where a.姓名=b.姓名 and a.开始日期=b.日期
select distinct ID,姓名,开始日期,max(结束日期),处理方式,备注 from 表 group by ID ;
select id,姓名,开始日期,结束日期 from (select * from table order by 开始日期 desc) group by name