I have a member master file that has a many recs per member showing start and end dates of when that person was an active member historically.
What I need to do is figure out which members were continuously enrolled for a period of time (say 1yr from today). So if today was dec 31,2002 and we were looking at recs for member number 200.....
Start End
rec1 6/1/02 null
rec2 3/1/02 5/31/02
rec3 1/1/02 2/28/02
Member number 200 was indeed continuously enrolled for 1yr from today(12/31/02).
Can anyone give me a source code example of how to accomplish this via Transact SQL using any methodology?
I am really stuck here although I am certain it can be done in sql.
Thanks alot for your help, I really appreciate it!
Bob
What I need to do is figure out which members were continuously enrolled for a period of time (say 1yr from today). So if today was dec 31,2002 and we were looking at recs for member number 200.....
Start End
rec1 6/1/02 null
rec2 3/1/02 5/31/02
rec3 1/1/02 2/28/02
Member number 200 was indeed continuously enrolled for 1yr from today(12/31/02).
Can anyone give me a source code example of how to accomplish this via Transact SQL using any methodology?
I am really stuck here although I am certain it can be done in sql.
Thanks alot for your help, I really appreciate it!
Bob