Retrieve only Distinct Record from 'flatfile' Source

How to retrieve only distinct record from 'flatfile' source, without using sorter transformation? Is it posible? How?

Questions by nutty.nikhi.l2002

Showing Answers 1 - 2 of 2 Answers

Create a Variable port for all the input port and keep them in a seequence that the variable ports will access first after the input port. Then, compare the same variable ports in the ouput port along with the key columns. If there is any duplicate records found then FLAG it with "X". So that in this way we can eliminate the duplicates from the flat. file.

Hope this will help you.

  Was this answer useful?  Yes

sheeladere

  • Jan 4th, 2010
 

We can use Aggregate transformation for this. Group by on all the columns in the Aggregator and get only first or last record from the group, it will give you distinct records.

But sorter is the best option, I am not sure why you want to avoid it, is there any specific reason?

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.