Using Expression transformation how to remove duplicate
records from a relational source?
Answer Posted / prathibha
Hi,
Source->SQ->Sorter->Expression->FilterTarget.
Lets take a small example for this scenario.
Use a sorter to sort the input data.
ID Name
1 A
1 A
2 B
3 C
3 C
In Expression Transformation declare the following ports:
ID
Name
O_Count= iiF(V_port=ID,O_Count=O_count+1,O_Count=0)
V_port(Variable Port) = ID;
In filter transformation give the condition O_Count =0;
Let me know if there are any suggestions.
| Is This Answer Correct ? | 17 Yes | 2 No |
Post New Answer View All Answers
What all join we can perform in LOOKUP transformation?
if i hv 6 table as source table but can i make 12 as a dim table and 6 as fact table belongs to that src table.
What is informatica?
What is the difference between writing a joiner query in ANSI style and THETA style?
What is meant by lookup transformation?
What is enterprise data warehousing?
What is the difference between SOURCE and TARGET BASED COMMITS? What are the deliverables?in your project?
How do you load unique records into one target table and duplicate records into a different target table?
What is the command used to run a batch?
Enterprise data warehouse your projects phase by phase explain?
Explain what transformation and how many are there in informatica?
What is olap (on-line analytical processing?
Debugger what are the modules, what are the options you can specify when using debugger, can you change the expression condition dynamically when the debugger is running.
What is the main purpose of Unconnected lookup other than updating slowly changing dimensions? or In which case u use Unconnected lookup?
Why union transformation is an active transformation?