select * from table_name where
id,date in
(select ID,max(DATE) from table group by ID)你要是有一个主键就更方便了