题解 | #未完成试卷数大于1的有效用户#

未完成试卷数大于1的有效用户

https://www.nowcoder.com/practice/46cb7a33f7204f3ba7f6536d2fc04286

select uid,count(uid)-count(submit_time) a,count(submit_time) b,
group_concat(distinct concat_ws(':', date(start_time), tag) SEPARATOR ';')  detail
        from exam_record JOIN examination_info USING(exam_id)
        where year(start_time) = 2021
        group by uid
        having b>=1 and a<5 and a>1 
ORDER BY a desc

全部评论

相关推荐

11-30 18:33
已编辑
惠州学院 后端工程师
点赞 评论 收藏
分享
回家当保安:加油, 我当时也想拒字节面试,是被HR鼓励着我面试。然后走了2周流程 ,一共3+1 面,最后惊喜的发了offer。佬可以试试
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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