i think we can go with DISTINCT, Dervied table and Join concept..
Sel t1.col1, t1.col2, t1.R1 as sales Rank from table as t1
inner join
(Sel sales, Rank(sales) as R1 from (sel distinct sales from table)dt) as t2
on t1.sales = t2.sales
↧