select a.*
from tablename a join (
select name, max(date) as date
from tablename) b on a.name = b.name and a.date = b.date