If I have this data in a table in MSSQL which represents a horizontal row of objects and their coordinates:
row id value
35395 776130 0
35395 776131 20
35395 776132 40
35395 776133 60
35395 776134 80
35395 776135 100
35395 776136 120
35395 776137 140
35395 776138 160
35395 776139 180
35395 776140 200
And I want to change the values so that they are ordered in descending order (flip the row 180degrees):
row id value
35395 776130 200
35395 776131 180
35395 776132 160
35395 776133 140
35395 776134 120
35395 776135 100
35395 776136 80
35395 776137 60
35395 776138 40
35395 776139 20
35395 776140 0
How can I do this using an update statement without doing it one by one?