Hi All,
Could you please help me to get the code for the below logic.
A B C Endda begda
9888 | CA01 | 0001 | 20101231 | 20020101 |
9888 | CA01 | 0001 | 20150301 | 20130831 |
9888 | CA01 | 0001 | 20171231 | 20170131 |
9888 | CA01 | 0001 | 99991231 | 20110101 |
9888 | CA01 | 0001 | 99991231 | 20140101 |
I want to have logic built for maintaining dates with no gaps and no overlaps.
Expected answer is
20101231 | 20020101 |
20130830 | 20110101 |
20150301 | 20130831 |
20170130 | 20150302 |
20171231 | 20170131 |
99991231 | 20180101 |
Thanks & Regards,
Jagadesh