Using tMap to join on multiple columns

One Star

Using tMap to join on multiple columns

Hi,
I have a very simple problem, but I haven't found an obvious solution.
I have a two table, A and B. Table A has field id. Table B has fields id1, id2 and id3. I need to filter A when it matches either id1, id2 and id3.
I have tried to add this as a filtering condition to either the main or the lookup table, and it is not working - empty result.
I am clearly missing something obvious.
Any suggestion?
Thanks.

One Star

Re: Using tMap to join on multiple columns

Hi
you can do it using 3 subjobs, and joint using a tmap
A.id = B.id1 => put result in tmp.csv
A.id = B.id2 => put result in tmp.csv
A.id = B.id3 => put result in tmp.csv
At the end, remove dublicate in tmp.csv

wcfsmart

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog