Question

I am importing an excel file in Talend. I want to select all the distinct values in column "A" and then dump that data into the database. Is it possible to do that with Talend? If not, what are the alternatives available. Any help is appreciated

Was it helpful?

Solution

Yes you can do that easily with Talend Open Studio.

Create a new job like this one:

enter image description here
You can replace the tOracleOutput component by the component corresponding to your database.
Then parameterize the tAggregateRow component like this :

enter image description here

Distinct values of ColumnA will be transfered to distinctColumnA in the output schema.
You can also get the number of occurences by adding a count of columnB in the operations table.

OTHER TIPS

Using tUniqRow in Talend Open Studio 6.3 works very well and you get to keep all your columns.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top