Hi All!
My question seems to be hard, but I can't get answer to this.
I can put a unique continuously growing row number into a field like next:
update TABLE set NUMBER=rownum ;
Value Number
-----------------
9 1
7 2
2 3
5 4
This code puts the own rownum in the records not ordered. My question is: How can I use this way, if I would like to put the number ordered by Value, like this:
Value Number
-----------------
9 4
7 3
2 1
5 2
How can I do, that the UPDATE command shall put the Number ordered by Value?
Thanks forward!
My question seems to be hard, but I can't get answer to this.
I can put a unique continuously growing row number into a field like next:
update TABLE set NUMBER=rownum ;
Value Number
-----------------
9 1
7 2
2 3
5 4
This code puts the own rownum in the records not ordered. My question is: How can I use this way, if I would like to put the number ordered by Value, like this:
Value Number
-----------------
9 4
7 3
2 1
5 2
How can I do, that the UPDATE command shall put the Number ordered by Value?
Thanks forward!