I have the following query that works great
SELECT RecordID, ROW_NUMBER() OVER (ORDER BY (Value1) DESC) AS Rank
FROM Table1
In addition, I have another table (table2) that contains (among others) the RecordID and Rank fields. I would like to update RecordID and Rank in table2 based on the result of the query above. Is it possible?
source
share