;WITH a AS(
	SELECT ROW_NUMBER() OVER(ORDER BY (SELECT NULL)) as RowNumber, SortOrder
	FROM tblProductType
	WHERE StoreId = 1001
) 
UPDATE a SET SortOrder = RowNumber
Last modified: December 4, 2020

Author

Comments

Write a Reply or Comment