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

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

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

select exam_id,
       count(distinct uid) as uv,
       round(avg(score),1) as avg_score
from exam_record
where (exam_id,date(start_time)) in (
    select exam_id,date(release_time)
    from examination_info
    where tag = 'SQL' 
)
and uid in(
    select uid 
    from user_info
    where level > 5
)

group by exam_id
order by uv desc,avg_score asc
#现在做这些题都是对一半多,总有关键的地方想不到

全部评论

相关推荐

2025-12-15 19:41
已编辑
广东工业大学 前端工程师
smile丶snow:尽量保证的一张a4纸吧。为什么工作经历只有公司?如果项目经历是工作里面的,应该写到工作经历里的吧。没有写项目职责,项目全是一个人写的吗?标题大小也好怪。两个项目的分割看不出来是,它和那些项目成功字体是一样大的
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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