题解 | 统计作答次数

select
    count(*) total_pv,
    count(
        case
            when submit_time then 1
        end
    ) complete_pv,
    count(
        distinct case
            when submit_time then exam_id
        end
    ) complete_exam_cnt
from
    exam_record

全部评论

相关推荐

求offer的大角牛:不吃香菜
点赞 评论 收藏
分享
不愿透露姓名的神秘牛友
07-07 13:46
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

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