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

select
    a.emp_id as emp_id,
    emp_level,
    tag as exam_tag
from
    emp_info a,
    examination_info b,
    (
        select
            *,
            avg(timestampdiff (second, start_time, submit_time)) over (
                partition by
                    exam_id
            ) as avg_time,
            avg(score) over (
                partition by
                    exam_id
            ) as avg_score
        from
            exam_record
    ) c
where
    a.emp_id = c.emp_id
    and b.exam_id = c.exam_id
    and timestampdiff (second, start_time, submit_time) < avg_time
    and score > avg_score
    and emp_level < 7
group by
    b.exam_id,
    tag,
    a.emp_id
order by
    a.emp_id,
    b.exam_id

全部评论

相关推荐

米黑子米黑子:你这个成绩不争取下保研?
点赞 评论 收藏
分享
05-12 11:09
已编辑
门头沟学院 后端
SmileDog12138:没必要放这么多专业技能的描述。这些应该是默认已会的,写这么多行感觉在凑内容。项目这块感觉再包装包装吧,换个名字,虽然大家的项目基本都是网上套壳的,但是你这也太明显了。放一个业务项目,再放一个技术项目。技术项目,例如中间件的一些扩展和尝试。
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务