i want to generate specific numbers for specific codes in talend. Some of the codes are repeating, but i dont want to generate a different numerical sequence for that code. In tMap i used Numeric.sequence("out1.CODE",1,1) but it didnt help. Is there a way to replace the key based on the previous matching code. pls help
Table 1
| code |
|---|
| ABC |
| ACC |
| AEB |
| ACC |
| AED |
| BEE |
| AEB |
Required Result
Table 1
| code | key |
|---|---|
| ABC | 1 |
| ACC | 2 |
| AEB | 3 |
| ACC | 2 |
| AED | 4 |
| BEE | 5 |
| AEB | 3 |
Your job design would look like this
1- tMap_2 is configured as such2- thashinput_1 would call thashoutput_1 and tick in the tUniqRow_1 : **Code**3- tmap_4 configuration is configured as such :4- tmap_5 configuration is configured as such :Here is my output :