当前系统日期 curdate()

今天的刷题量(一)

https://www.nowcoder.com/practice/e18f56796ae94c3d885e61c8d57a950e

select name,cnt
from(
    select
        distinct subject_id,
        name,
        count(create_time) over(partition by name) cnt
    from submission a
    left join subject b on a.subject_id=b.id
    where create_time=curdate()-1
) t
order by cnt desc,subject_id

全部评论

相关推荐

点赞 评论 收藏
分享
03-07 13:49
门头沟学院 Java
逆流河上万仙退:可能是发的钱太少了 怕你过来实习还要自己贴钱 意向就不高 省的浪费大家时间 可能你通过了也不会去
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务