题解 | #注册当天就完成了试卷的名单第三页#

注册当天就完成了试卷的名单第三页

https://www.nowcoder.com/practice/718d36d2667b48faa2168b6c1521816a

with cte_get_user as (
    select uid,level,register_time,min(submit_time) as first_submit,
    max(score) as max_score
    from user_info
    join exam_record using(uid)
    join examination_info using(exam_id)
    where job = '算法' and tag = '算法' and submit_time is not null
    group by uid
)
select uid,level,register_time,max_score
from cte_get_user
where date_format(register_time,'%Y%m%d')=date_format(first_submit,'%Y%m%d')
group by uid
order by max_score desc
limit 6,3

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务