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

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

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

select employee_id,department_name ,performance_score
from (
    select department_id ,avg(performance_score ) as avg_score
    from employee_projects join department_info using(employee_id )
    group by department_id 
) temp  join department_info using(department_id )
 join employee_projects using(employee_id )
 where performance_score>avg_score
 order by employee_id;
   

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

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