题解 | 完成员工考核试卷突出的非领导员工

完成员工考核试卷突出的非领导员工

https://www.nowcoder.com/practice/422dcd6ae72c49c9bbec1aff90d69806

with
    temp1 as (
        select
            avg(score) over (
                partition by
                    exam_id
            ) as avg_score,
            avg(timestampdiff(minute, start_time, submit_time)) over (
                partition by
                    exam_id
            ) as avg_time,
            timestampdiff(minute, start_time, submit_time) as time,
            emp_id,
            score,
            tag,
            e.exam_id
        from
            exam_record e
            join examination_info ei on ei.exam_id = e.exam_id
    )
select
    t.emp_id,
    emp_level,
    tag as exam_tag
from
    temp1 t
    join emp_info emp on emp.emp_id = t.emp_id
where
    time < avg_time
    and score > avg_score
    and emp_level < 7
order by
    t.emp_id,
    exam_id;

全部评论

相关推荐

rbjjj:太杂了吧,同学,项目似乎都没深度,都是api调度耶,分层架构思想没有体现出来了,前端没有前端优化前端工程化体现,后端微服务以及分层架构没体现以及数据安全也没体现,核心再改改,注重于计算机网络,工程化,底层原理吧
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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