How to update the datetime difference between all of the rows of a table?
WITH cte AS ( SELECT *, ROW_NUMBER() OVER (ORDER BY StartTime) rn FROM schedules)
UPDATE cte SET StartTime = DATEADD(minute, 15*(1-rn), StartTime);


fiddle