题解 | #牛客每个人最近的登录日期(六)#
牛客每个人最近的登录日期(六)
https://www.nowcoder.com/practice/572a027e52804c058e1f8b0c5e8a65b4
select u.name,p.date,sum(p.number)over(partition by p.user_id order by date) from passing_number p join user u on p.user_id=u.id order by p.date,u.name;