题解 | #试卷发布当天作答人数和平均分#

试卷发布当天作答人数和平均分

http://www.nowcoder.com/practice/5b58e89556dc4153a79d8cf8c08ba499

select exam_id,count(distinct t1.uid) as uv,
       round(avg(score),1)   as avg_score
from exam_record t1
join user_info t2 on t1.uid = t2.uid and t2.level > 5
where (exam_id,date_format(start_time,'%Y%m%d')) in (
    select exam_id,date_format(release_time,'%Y%m%d') as re_day
    from examination_info where tag = 'SQL'
    )
group by exam_id
order by uv desc,avg_score


全部评论

相关推荐

见见123:简历没有啥问题,是这个社会有问题。因为你刚毕业,没有工作经历,现在企业都不要没有工作经历的。社会病了。
点赞 评论 收藏
分享
Rena1ssanc...:对的,要是面评没太烂,勤更新简历等捞就行了,腾讯可以无限复活
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

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