I have a table with the columns player_id and rating and would like to
query PostgreSQL in a way so that it returns "ranking" as well, like so:
(Players with identical rating should have the same ranking)
Anyone know how this can be achieved?
| player_id | rating | ranking |
|---|---|---|
| 1 | 210 | 1 |
| 2 | 112 | 2 |
| 3 | 112 | 2 |
| 4 | 25 | 3 |
(Players with identical rating should have the same ranking)
Anyone know how this can be achieved?
Request notifications