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

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

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

select
    employee_id,
    employee_name,
    performance_score as first_half_2024_score,

    row_number() over (
        partition by
            project_id
        order by
            performance_score desc, employee_id asc
    ) as project_group_rank,
    department,
        project_name as project_group
from
    performance
    left join projects using (project_id)
    left join employees using(employee_id)
where
    start_date between '2024-01-01' and '2024-07-01'

全部评论

相关推荐

想run的马里奥在学...:这个学历帮你扫平百分之80的障碍,投就完了,这会找不到就等3月暑期一样能找到
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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