How to create Native Derived Table with brand wise Rank() over order by Sum of Sale price.

Here I want to create rank column with help of Sum(sales) aggregation value in the same query. 

select brand, Sum(Sale_price), Rank() over(order by Sum(Sale_price))

from table1 group by 1 order by 2 desc

How we create native derive table. 

0 0 132
0 REPLIES 0
Top Labels in this Space
Top Solution Authors