All pastes #444291 Raw Edit

Something

public text v1 · immutable
·published 2007-04-17 09:28 UTC
rendered paste body
im having table x with two column "mark and rank"
mark  rank
24
55
34
67
48

now i want to fix the rank based on the marks
ie i want an update statement which will set the rank based in ranks

the o/p shd be

mark rank
24   5
55   2
34   4
67   1
48   3