题解 | 分析每个员工在不同项目中的绩效情况

分析每个员工在不同项目中的绩效情况

https://www.nowcoder.com/practice/fa64fd2eb40d4639bc23dfb1ffae2163

select t1.employee_id as employee_id, employee_name, performance_score as first_half_2024_score, rank() over (partition by project_name order by performance_score desc) as project_group_rank, department, project_name as project_group
from employees as t1 inner join performance as t2
on t1.employee_id=t2.employee_id
inner join projects as t3
on t2.project_id=t3.project_id
where start_date between '2024-01-01' and '2024-07-01'
order by project_group, project_group_rank, t1.employee_id

全部评论

相关推荐

程序员小白条:找的太晚,别人都是大三实习,然后大四秋招春招的,你大四下了才去实习,晚1年
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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