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

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

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'

全部评论

相关推荐

鱼专:别投了,我看到有人点了第二个链接投递,还没退出界面,不合适的邮件就发过来了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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