I\'m completely new to sql and can\'t do that myself. So I need your help. I want to sort values in column and then save changes. But I don\'t know how to do that.
T
You can use the ROW_NUMBER ranking function to renumber the rows.
SELECT UnsortedId = id , SortedId = ROW_NUMBER() OVER (ORDER BY g.name, g.id) FROM games