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

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

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

select emp_id,emp_level,tag as exam_tag
from (select emp_id,exam_id,emp_level,
case 
  when score > s2 and minute < s1 then '优秀'
  else '不合格'
end as situation
from (select emp_id,exam_id,emp_level,avg(timestampdiff(second,start_time,submit_time)/60)over(partition by exam_id) as s1,avg(score)over(partition by exam_id) as s2,timestampdiff(second,start_time,submit_time)/60 as minute,score
from exam_record join emp_info using(emp_id)
group by emp_id,exam_id,score,start_time, submit_time) as temp1
where emp_level < 7) as temp2  join examination_info using(exam_id)
where situation = '优秀'
order by emp_id,emp_level

全部评论

相关推荐

LuminousZJ:不行,最后还是要看学信网的,这点不能伪装,也骗不过人家,得不偿失
点赞 评论 收藏
分享
03-31 14:46
已编辑
门头沟学院 Web前端
励志成为双港第一ja...:这其实很正常,离的太远了,他认为你不会来,就为了混个面试,而且成本很高,实习生都优先选本地高校。吃了地域的亏,所有很多时候地域可能比院校层次更重要。
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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