I want to populate a table column with a running integer number, so I\'m thinking of using ROWNUM. However, I need to populate it based on the order of other columns, someth
UPDATE table_a
SET sequence_column = (select rn
from (
select rowid,
row_number() over (order by col1, col2) AS RN
from table_a
) x
where x.rowid = table_a.rowid)