Hello everyone,
Need some guidance on how best to approach this. I have data where I am presented with the following
I must determine how many 12 month terms, or partial terms, exist for the contract and list each one out on a separate line. There may be between 1 and 5 periods. The below is the output I am looking for.
Any term shorter than 12 months, or any contract with a partial term shorter than 12 months must be loaded as the first term.
I feel like this should be easy, but it is just escaping me, or is just a bit beyond me at this point.
Any help here would be greatly appreciated and would well be worth a case of beer.
Thank you greatly,
Pabowen
Need some guidance on how best to approach this. I have data where I am presented with the following
Code:
Contract ContractStartDate ContractEndDate
A-S00027491 2020-08-06 00:00:00.000 2022-08-06 00:00:00.000
A-S00027526 2020-08-13 00:00:00.000 2022-08-13 00:00:00.000
A-S00027540 2020-08-12 00:00:00.000 2022-12-12 00:00:00.000
I must determine how many 12 month terms, or partial terms, exist for the contract and list each one out on a separate line. There may be between 1 and 5 periods. The below is the output I am looking for.
Code:
Contract ContractStartDate ContractEndDate
A-S00027491 2020-08-06 00:00:00.000 2021-08-05 00:00:00.000
A-S00027491 2021-08-06 00:00:00.000 2022-08-06 00:00:00.000
A-S00027526 2020-08-13 00:00:00.000 2021-08-12 00:00:00.000
A-S00027526 2021-08-13 00:00:00.000 2022-08-12 00:00:00.000
A-S00027540 2020-08-12 00:00:00.000 2020-12-11 00:00:00.000 <<<<< Note that the period shorter than 12 months is front loaded as the first term
A-S00027540 2020-12-12 00:00:00.000 2021-12-11 00:00:00.000
A-S00027540 2021-12-12 00:00:00.000 2022-12-11 00:00:00.000
Any term shorter than 12 months, or any contract with a partial term shorter than 12 months must be loaded as the first term.
I feel like this should be easy, but it is just escaping me, or is just a bit beyond me at this point.
Any help here would be greatly appreciated and would well be worth a case of beer.
Thank you greatly,
Pabowen