Du kan använda left join
som
select
t1.* from table_name t1
left join table_name t2
on t1.Id = t2.Id and t1.Date >t2.Date
where t2.Id is null
http://dev.mysql .com/doc/refman/5.0/en/example-maximum-column-group-row.html
Du kan använda left join
som
select
t1.* from table_name t1
left join table_name t2
on t1.Id = t2.Id and t1.Date >t2.Date
where t2.Id is null
http://dev.mysql .com/doc/refman/5.0/en/example-maximum-column-group-row.html