题解 | #牛客每个人最近的登录日期(二)#
牛客每个人最近的登录日期(二)
https://www.nowcoder.com/practice/7cc3c814329546e89e71bb45c805c9ad
select u.name, c.name, l.date from login l, client c, user u where l.date = (select max(date) from login l2 where l2.user_id = l.user_id) and l.user_id = u.id and l.client_id = c.id order by u.name asc
更简明的写法,看见分组就一定要用group by吗?太僵硬了吧
SHEIN公司福利 903人发布