Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
DEV4
Contributor III
Contributor III

Need to assign key

Hello All,

 

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.

 

0683p000009M60L.png

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.


0683p000009M6Kl.png

Labels (3)
1 Reply
DEV4
Contributor III
Contributor III
Author

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.

0683p000009M6Kq.png

 

Below is how im expecting my out put to be.

0683p000009M6Kv.png