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 |



