Hello all,
I am trying to fix data in the database that incorrect record start date and sometime having incorrect record enddate. Can you please help me what is the best way to fix this data in SQL. Here are examples of problem data.
Scenario #1:
Recordid SartDate EndDate
1 01/01/2010 01/02/2010
2 01/02/2010 01/05/2010--correct date is start date of recorid 3
3 01/03/2010 01/04/2010
4 01/04/2010
Scenario #2:
Recordid SartDate EndDate
1 01/01/2010 01/02/2010
2 01/02/2010 01/05/2010
3 01/02/010 01/06/2010-- Correct start dt is recordid 2 enddate
4 01/062010
I am trying to fix data in the database that incorrect record start date and sometime having incorrect record enddate. Can you please help me what is the best way to fix this data in SQL. Here are examples of problem data.
Scenario #1:
Recordid SartDate EndDate
1 01/01/2010 01/02/2010
2 01/02/2010 01/05/2010--correct date is start date of recorid 3
3 01/03/2010 01/04/2010
4 01/04/2010
Scenario #2:
Recordid SartDate EndDate
1 01/01/2010 01/02/2010
2 01/02/2010 01/05/2010
3 01/02/010 01/06/2010-- Correct start dt is recordid 2 enddate
4 01/062010