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

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

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
#现在做这些题都是对一半多,总有关键的地方想不到

全部评论

相关推荐

爱吃肉的伊登在写日记:好棒,27届简历能做成这个样子,但是第一个项目感觉cover住难度还是不小的,特别是二面的时候肯定要对分布式系统设计这一块儿有高出正常面试者的水平才行
点赞 评论 收藏
分享
迟缓的斜杠青年巴比Q了:简历被投过的公司卖出去了,我前两天遇到过更离谱的,打电话来问我有没有意向报班学Java学习,服了,还拿我学校一个学长在他们那报班学了之后干了华为OD当招牌
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务