I have 3 columns, they are created by Dense Rank, Count, and Row Number
DR C RN
1 4 1
2 4 2
3 4 3
4 4 4
Is there any way for the DENSE_RANK or some other ranking function return in reverse order?
Like this
DR C RN
4 4 1
3 4 2
2 4 3
1 4 4
Thanks,
try this. Use
order by RN desc
indense rank
over clause
OUTPUT :