赞
踩
select employee.*,row_number()over(partition by deptid order by salary desc) rank from employee;
select employee.*,rank()over(partition by deptid order by salary desc) rank from employee;