Possible Duplicate:
How do I Handle Ties When Ranking Results in MySQL?
I'd like to order the table Status
by Activepoints
and insert the rank into a column rank
.
It comes:
RANK USERNAME ACTIVEPOINTS
1 monkey100 92
2 fresnoJump 54
3 otherUser9 54
but it should display NOT unique ranks like
RANK USERNAME ACTIVEPOINTS
1 monkey100 92
2 fresnoJump 54
2 otherUser9 54