I have a table that will have a start date, end date, and a third field called ID. If when going through this table that is indexed by ID, start Date, I want to take all the fields that have no breaks in the date fields to be combined into 1 record where possible. For example, I have 3 consecutive recs that are arranged as follows...
ID start end
1 1/1/2006 3/15/2006
1 3/16/2006 6/12/2006
1 6/13/2006 7/24/2006
These 3 recs would be combined into 1 rec as follows...
ID start end
1 1/1/2006 7/24/2006
Can someone show me how to do this?
Thanks in advance for your help!
bob
ID start end
1 1/1/2006 3/15/2006
1 3/16/2006 6/12/2006
1 6/13/2006 7/24/2006
These 3 recs would be combined into 1 rec as follows...
ID start end
1 1/1/2006 7/24/2006
Can someone show me how to do this?
Thanks in advance for your help!
bob