Using Expression transformation how to remove duplicate
records from a relational source?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / babu
Hi,
SRC-->SQ(ENABLE DISTINCT )-->EXP-->TRG
OR
IN EXP T/R TAKE 4 VARIABLE PORTS AND OUTPUT PORT,
SRC HAVEING THE COLUMNS LIKE COL1,COL2,COL3
SRC-->SQ-->SRT(PLEASE TAKE ALL ARE KEY PORTS)-->EXP
(VAR IS IIF(VAR1=COL1 AND VAR2=COL2 AND
VAR3=COL3),1,0)
VAR1=COL1
VAR2=COL2
VAR3=COL3
OUT=VAR
-->UPD(IIF(OUT=1,DD_REJECT,DD_INSERT))-->TRG
IF ANY THING WRONG PLEASE LET ME KNOW.
8861145051
| Is This Answer Correct ? | 6 Yes | 9 No |
Answer / bijay
The mapping should be like this
SRC->SQ->EXP->TARGET
In source qualifier transformation select 'ENABLE DISTINCT',
then it will send only distinct record to the expression transformtion. And From expression transformation simply connect to the target
| Is This Answer Correct ? | 2 Yes | 5 No |
What are the data movement modes in informatcia?
what is data driven in update strategy transformation?
Different circumstance which drives informatica server to expel records?
suppose if we have dublicate records in a table temp n now i want to pass unique values to t1 n dublicat values to t2 in single mapping using aggregator & router? how
Hi Experts, Performance Wise Which transformation is better in LOOKUP AND JOINER TRansformations? Why? Can anybody please explain it ? Please help me out from this Question. Thanks In Advance.
Describe an informatica powercenter?
can u give example for factless fact table
How to identify this row for insert and this row for update in dynamic lookup cache
How to start a workflow using pmcmd command?
How will restrict values in 0-9 and A-Z and a-z and special character.Only allowed these chars otherwise we will reject the records? what is the function we used to restrict...
What is CHECK-IN CHECK-OUT. Please explane me?
what is the significance of newlookup port in dynamic look up