题解 | #平均播放进度大于60%的视频类别#

未完成试卷数大于1的有效用户

http://www.nowcoder.com/practice/46cb7a33f7204f3ba7f6536d2fc04286

SELECT uid, COUNT(IF(e.submit_time IS NULL ,1,NULL)) AS incomplete_cnt, COUNT(e.submit_time) AS complete_cnt , GROUP_CONCAT( DISTINCT CONCAT_WS(':',DATE(e.start_time),i.tag) SEPARATOR';') AS detail FROM exam_record e INNER JOIN examination_info i ON e.exam_id = i.exam_id WHERE YEAR(e.start_time) = 2021 GROUP BY uid HAVING complete_cnt >=1 AND incomplete_cnt between 2 and 4 ORDER BY incomplete_cnt DESC;

全部评论

相关推荐

挥毫自在:想白嫖你呢
点赞 评论 收藏
分享
09-29 00:03
门头沟学院 Java
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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