Hello,
I have two tables with the same field names. Both tables have 2 date fields, with a start date and a end date and other fields which has the same name in both files. The only thing is that the date segmenst (time between start and end) has a overlap.
Example:
TABLE 1:
DATUM_INGANG | DATUM_EINDE | ID | REPLACER |
19921101 | 20040119 | 0502010000027183 | OWNER |
20040119 | 20160930 | 0502010000027183 | OWNER |
20160930 | 99991231 | 0502010000027183 | OWNER |
TABLE 2:
DATE_START | DATE_END | ID | REPLACER |
19921101 | 20060716 | 0502010000027183 | USER |
20060716 | 20061008 | 0502010000027183 | USER |
20061008 | 20070220 | 0502010000027183 | USER |
20070220 | 20100616 | 0502010000027183 | USER |
20100616 | 20110709 | 0502010000027183 | USER |
20110709 | 20111001 | 0502010000027183 | USER |
20111001 | 20190325 | 0502010000027183 | USER |
20190325 | 20190617 | 0502010000027183 | USER |
20190617 | 99991231 | 0502010000027183 | USER |
I want to combine them to one table, this should be the outcome:
DATE_START | DATE_END | ID | REPLACER |
19921101 | 20040119 | 0502010000027183 | EIGENAAR |
20040119 | 20060716 | 0502010000027183 | EIGENAAR |
20060716 | 20061008 | 0502010000027183 | GEBRUIKER |
20061008 | 20070220 | 0502010000027183 | GEBRUIKER |
20070220 | 20100616 | 0502010000027183 | GEBRUIKER |
20100616 | 20110709 | 0502010000027183 | GEBRUIKER |
20110709 | 20111001 | 0502010000027183 | GEBRUIKER |
20111001 | 20160930 | 0502010000027183 | GEBRUIKER |
20160930 | 20190325 | 0502010000027183 | EIGENAAR |
20190325 | 20190617 | 0502010000027183 | GEBRUIKER |
20190617 | 99991231 | 0502010000027183 | GEBRUIKER |
The date_end 99991231 is for tohave a value in the future. U can see that the dates have been segments. I trying it in FME, with listbuilders, listindexers etc. But it wont work, can someone help me?
In the attachement the real table. I want to do this with a large data amount, one the ID is must me grouped.