I have the following sql:
UPDATE TABLE1 SET SORT_COLUMN=ROWNUM WHERE ACTIVE_RECORD='Y'
That works but it sets the order to the current order of rows and I need to order by date, something like this:
UPDATE TABLE1 SET SORT_COLUMN=ROWNUM WHERE ACTIVE_RECORD='Y' ORDER BY START_DATE
But this, obviously, would not work. How can I update the SORT column based on the date?