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;
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;