题解 | 统计作答次数

统计作答次数

https://www.nowcoder.com/practice/45a87639110841b6950ef6a12d20175f

with t1 as(
select
    exam_id,
    count(start_time) a,
    count(submit_time) b
from exam_record
group by exam_id
)
select
    sum(a),
    sum(b),
    sum(if(b!=0,1,0))
from t1

全部评论

相关推荐

FieldMatching:看成了猪头顾问,不好意思
点赞 评论 收藏
分享
醉蟀:你是我今年见过的最美牛客女孩
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务