📅  最后修改于: 2022-03-11 15:05:08.629000             🧑  作者: Mango
select t.username, t.date, t.value
from MyTable t
inner join (
select username, max(date) as MaxDate
from MyTable
group by username
) tm on t.username = tm.username and t.date = tm.MaxDate