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

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

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

select 
    er.uid,
    floor(avg(if(score is null, 0, score))) as avg_score,
    round(avg(if(submit_time is null , duration, timestampdiff(minute,start_time,submit_time))), 1) as avg_time_took
from exam_record er
inner join examination_info ei on er.exam_id=ei.exam_id
inner join user_info ui on er.uid=ui.uid
where level=0 and difficulty='hard'
group by er.uid
全部评论

相关推荐

去B座二楼砸水泥地:不过也可以理解,这种应该没参加过秋招
点赞 评论 收藏
分享
点赞 收藏 评论
分享
牛客网
牛客企业服务