题解 | #每个题目和每份试卷被作答的人数和次数#

每个题目和每份试卷被作答的人数和次数

https://www.nowcoder.com/practice/203d0aed8928429a8978185d9a03babc

select exam_id as tid,count(distinct exam_record.uid) as uv,
count(*) as pv
from exam_record
group by exam_id

union
select question_id as tid,count(distinct practice_record.uid) as uv,
count(*) as pv
from practice_record
group by question_id
order by left(tid,1) DESC, uv DESC,pv DESC;

全部评论

相关推荐

11-02 09:49
已编辑
货拉拉_测试(实习员工)
热爱生活的仰泳鲈鱼求你们别卷了:没事楼主,有反转查看图片
点赞 评论 收藏
分享
与火:这不接? 留子的钱不挣白不挣
点赞 评论 收藏
分享
小红书 后端开发 总包n+8w+期权
点赞 评论 收藏
分享
评论
点赞
收藏
分享
牛客网
牛客企业服务