Můžete použít left join
jako
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
Můžete použít left join
jako
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