G
ggrandon
This seems like it should be doable but I can't figure it out. I want to
reduce multiple records to one where the start date of one record is the day
after the end date of another where EEnum and Bondtype are equal. Thanks in
advance for any help you can provide. Example below.
Current table
EEnum Bondtype start end
11111 01 1/1/2008 6/30/2008
11111 01 7/1/2008 8/5/2008
11111 01 8/6/2008 12/31/9999
22222 01 1/1/2008 6/30/2008
22222 01 7/25/2008 12/31/9999
Desired
11111 01 1/1/2008 12/31/9999
22222 01 1/1/2008 6/30/2008
22222 01 7/25/2008 12/31/9999
reduce multiple records to one where the start date of one record is the day
after the end date of another where EEnum and Bondtype are equal. Thanks in
advance for any help you can provide. Example below.
Current table
EEnum Bondtype start end
11111 01 1/1/2008 6/30/2008
11111 01 7/1/2008 8/5/2008
11111 01 8/6/2008 12/31/9999
22222 01 1/1/2008 6/30/2008
22222 01 7/25/2008 12/31/9999
Desired
11111 01 1/1/2008 12/31/9999
22222 01 1/1/2008 6/30/2008
22222 01 7/25/2008 12/31/9999