Rank and Row_Number()
Hi,in addition I added Dense_Rank .-)SELECT empid,deptid,salary, RANK() OVER(PARTITION BY deptid order by i.QuantityORDER BY salary DESC) AS 'Rank'will result in empid deptid salary Rank1 1 5000 12 1...
View Article
More Pages to Explore .....