T-SQL Updating current row to next row's value issue
问题 I am looking for some advice on what type of update would be the best in a certain scenario for t-sql DML. came into a data issue where end dates are one day before the start date on a current record, and need to set the end date to the start date of the next in row for multiple entities For example rowid entity id record_type start_date end_date 214 250 1 H 2015-01-01 2014-12-31 329 250 1 H 2015-04-25 2015-04-24 533 250 1 C 2015-11-01 NULL 11 250 2 H 2015-06-01 2014-05-29 292 250 2 H 2015-09