题解 | #月均完成试卷数不小于3的用户爱作答的类别#

月均完成试卷数不小于3的用户爱作答的类别

http://www.nowcoder.com/practice/b1d13efcfa0c4ecea517afbdb9090845

第一次写题解做个纪念吧

select tag, count(*) as tag_cnt 
from 
examination_info
join
(
    select * from 
    exam_record
    where uid in 
    (
        select uid from
        (
            select uid, count(*) as times
            from exam_record
            where submit_time is not NULL and 
                year(start_time)=2021 and month(start_time)=9
            group by uid
            having times>=3
        )a
    )
)b
using (exam_id)
# where submit_time is not NULL and 
#     year(start_time)=2021 and month(start_time)=9
group by exam_id
order by tag_cnt desc
全部评论

相关推荐

哈哈哈哈哈哈哈哈哈哈这个世界太美好了
凉风落木楚山秋:毕业出路老师不管,你盖个章他好交差就完事了,等你盖完毕业了就不关他事情了
点赞 评论 收藏
分享
asdasdasda...:19岁,不容易啊可能升个本会好点,现在学历歧视太严重了
点赞 评论 收藏
分享
大疆在线测评都考什么呀,会考企业概况啥的吗
又被画饼了的做题家很...:不会。刚做完,就是材料分析、态度题、算术题、逻辑题。总共60道。
投递大疆等公司7个岗位
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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