题解 | 分析员工在不同项目中的绩效表现以及所属部门的平均绩效情况

分析员工在不同项目中的绩效表现以及所属部门的平均绩效情况

https://www.nowcoder.com/practice/20c76a1181004965a3106524fd3ab583

select employee_id
,department_name
,performance_score
from (
    select employee_id
    ,department_name
    ,performance_score
    ,avg(performance_score)over(partition by department_name) as avg_ps
    from employee_projects join department_info using(employee_id)
    group by department_name,employee_id
) as t
where performance_score > avg_ps
order by employee_id ASC;

全部评论

相关推荐

鲸鸿:实习协议不用管签多久,要走的时候提前三天说就可以了
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

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