I have a requirement where a column has to values in my source table, for example USA,CANADA and I have split those two records and passing them as two different rows to the target table.
For Example in the below Image, the ones which are highlighted in yellow are as United States, Canada in the source which I split in to two different rows.
Now my requirement is to Assign 1 for United States and 0 for Canada in PRIMARY_INDICATOR_COLUMN. The idea is when there are two countries with same CITIZENSHIP_GROUP_KEY, then we need to assign 1 for the first one and 2 for the second one. If there is only one country per CITIZENSHIP_GROUP_KEY, then PRIMARY_INDICATOR should always be 1.
Please help me of how to achieve this. Thank You
This is how my job is.
I thought my earlier post might not a bit clear and hence I created a sample job and below is how Im trying to get the output.
Below is how im expecting my out put to be.
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Learn how to do cool things with Context Variables
Find out how to migrate from one database to another using the Dynamic schema
Pick up some tips and tricks with Context Variables