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

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

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
    ) as project_group_rank,
    department,
    project_name as project_group
from
    performance
    join projects using (project_id)
    join employees using (employee_id)
where
    start_date between ' 2024-01-01' and '2024-07-01'
order by project_id,project_group_rank,employee_id

    

这题目难度应该属于简单级别,另外题目的排名依据应该大大方方写清楚,别藏到结果解释里面,做题时候真的很烦一些语文表达严重不及格的出题条件

全部评论

相关推荐

10-02 19:29
已编辑
浙江科技大学 运营
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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