Hi I have an issue where i have sets of enroll segments like this:
MemID EnrollID EffDate TermDate
A1 enr1 01/01/2006 03/31/2006
A1 enr2 05/01/2006 06/30/2006
A1 enr3 07/01/2006 12/31/2078
A2 enr1 02/01/2006 04/30/2006
A2 enr2 05/01/2006 08/31/2006
A2 enr3 11/01/2006 01/31/2007
A2 enr4 04/01/2007 12/31/2078
As you can see, member A1 has 3 segments and member A2 has 4. I need to find the very last termdate that is not 12/31/2078 and find the difference between that and the next effdate. So for instance for member A1, I would need to find the difference between 06/30/2006 and 07/01/2006, which in this case would only be one, but for A2, I would need to find the diff between 01/31/2007 and 04/01/2007.
thanks for the help and let me know if this is not clear.
Harvard
MemID EnrollID EffDate TermDate
A1 enr1 01/01/2006 03/31/2006
A1 enr2 05/01/2006 06/30/2006
A1 enr3 07/01/2006 12/31/2078
A2 enr1 02/01/2006 04/30/2006
A2 enr2 05/01/2006 08/31/2006
A2 enr3 11/01/2006 01/31/2007
A2 enr4 04/01/2007 12/31/2078
As you can see, member A1 has 3 segments and member A2 has 4. I need to find the very last termdate that is not 12/31/2078 and find the difference between that and the next effdate. So for instance for member A1, I would need to find the difference between 06/30/2006 and 07/01/2006, which in this case would only be one, but for A2, I would need to find the diff between 01/31/2007 and 04/01/2007.
thanks for the help and let me know if this is not clear.
Harvard