📜  每个用户的最后日期 sql 代码示例

📅  最后修改于: 2022-03-11 15:05:08.629000             🧑  作者: Mango

代码示例1
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