Hello all!
I need some help with a merging of two datasets.
In the first one I have the data of birth of every individual. In the second one I have a list of programs and for each of them I have the begin date and the end date.
I need to merge the two datasets in order to obtain for every individual the program that was in place when the individual was born.
The condition should be: date_begin<=date_birth<=date_end
An additional problem is that for every individual there will be two programs since at each moment there were two programs in place.
Any suggestions to solve this?
Thanks a lot,
Matteo
I need some help with a merging of two datasets.
In the first one I have the data of birth of every individual. In the second one I have a list of programs and for each of them I have the begin date and the end date.
I need to merge the two datasets in order to obtain for every individual the program that was in place when the individual was born.
The condition should be: date_begin<=date_birth<=date_end
An additional problem is that for every individual there will be two programs since at each moment there were two programs in place.
Any suggestions to solve this?
Thanks a lot,
Matteo
Comment