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

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

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

select t1.uid,level,register_time,max(score) as max_score
from user_info t1
join exam_record t2 on t1.uid = t2.uid
join examination_info t3 on t2.exam_id = t3.exam_id
where t1.uid in (
                select t1.uid
                from user_info t1
                join exam_record t2 on t1.uid = t2.uid
                where date_format(t1.register_time,'%Y%m%d') = date_format(t2.submit_time,'%Y%m%d')
                and job = '算法' and tag = '算法'
                )
group by t1.uid,level,register_time
order by max_score desc
limit 6,3

全部评论

相关推荐

评论
9
收藏
分享

创作者周榜

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