题解 | #0级用户高难度试卷的平均用时和平均得分#

0级用户高难度试卷的平均用时和平均得分

https://www.nowcoder.com/practice/bb474c6cbd77478fb6d9fc86934d0ebb

select uid,
round(avg(if(score is not null,score,0)),0) as avg_score,
round(avg(if(submit_time is not null,timestampdiff(minute,start_time,submit_time),duration)),1) as avg_time_took
from exam_record left join user_info using(uid)
left join examination_info using(exam_id)
where level=0 and difficulty='hard'
group by uid

全部评论

相关推荐

10-07 20:48
门头沟学院 Java
听说改名就会有offer:可能是实习上着班想到后面还要回学校给导师做牛马,看着身边都是21-25的年纪,突然emo了了
点赞 评论 收藏
分享
点赞 收藏 评论
分享
牛客网
牛客企业服务