I have two datastreams. First looks like this:
Apple
Apple
Peach
Watermelon
Banana
Apple
Apple
The second looks like
Apple
Peach
Apple
Banana
Watermelon
My point being.. The first dataset is smaller, the second is bigger. I want to append ALL of the items from the first set, to the second. But some of the items in the first set are identical. Will find replace only take the first record of apple from set 1, to append next to both records of apples in set 2? Or once a record has been matched it looks for the next record to match, even if the first record could theoretically match too? The behavior I need is the latter.
Basically even though there are "duplicates" in set 1 and set 2, I want the find/replace to treat each repeated record as unique. I know a simple solution would be to append a unique identifier to each record that is repeated (in each stream) before the "find replace", but I'm not sure how. Any ideas? Do I simply use the unique tool and then add an incremental number to "D" output of the tool and then append them again? So it would look like Apple Apple1 Apple2 Apple3?
Basically the join/replace tool I'm looking for should make the result should look like this:
Apple Apple (1st apple from Set 1)
Peach Peach (Peach from Set 1)
Apple Apple (2nd apple from Set 1)
Banana Banana (Banana from Set 1)
Watermelon Watermelon (Watermelon from Set 1)
The last 2 apples from Set 1 should remain unmatched.