I have a set of data
alex, 50
anu, 85
limi, 41
sam, 56
I need to find the rank of the students and store it in another column with the rank eg:-
alex 50 3
anu 85 1
limi 41 4
sam 56 2
I tried with the rank function.
SELECT
a.name, a.mark,
rank() over (ORDER BY a.mark DESC) as rank
FROM
list a;
please help me. thanks in advance!!