题解 | 统计作答次数

SELECT COUNT(id) AS total_pv , COUNT(submit_time) AS compelete_pv,
		(SELECT COUNT(DISTINCT(exam_id))
            FROM exam_record
            WHERE score IS NOT NULL) AS complete_exam_cnt
FROM exam_record 

全部评论

相关推荐

评论
2
收藏
分享
牛客网
牛客企业服务