Using Expression transformation how to remove duplicate
records from a relational source?

Answers were Sorted based on User's Feedback



Using Expression transformation how to remove duplicate records from a relational source?..

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

Using Expression transformation how to remove duplicate records from a relational source?..

Answer / infabee

Expression is a passive transformation. So we can't delete
any row in it. We can achive only by using an active
transformation with/without it (SQ,Filter,Agg..etc).

Is This Answer Correct ?    4 Yes 1 No

Using Expression transformation how to remove duplicate records from a relational source?..

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

Using Expression transformation how to remove duplicate records from a relational source?..

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

Post New Answer

More Informatica Interview Questions

in what type of scenario bulk loading and normal loading we use?

2 Answers   Cognizant, Wipro,


What do think which one is the better joiner or look up?

0 Answers  


How or for what purpose look up transformation would be useful in Sales or Banking Project? Please reply!

2 Answers  


What are the measure objects?

0 Answers  


What could be the possible resons of locks by user?

0 Answers  






explain abt ur project architecture?

0 Answers   Anthem, DELL, IBM, TCS, Wipro,


performance wise which one is better in joiner and lookup transformation

2 Answers  


How to Display top 2 salaries for each department WITHOUT using Rank Transformation And WITHOUT using SQL queries in source qualifier.

3 Answers   Eureka Forbes,


My source has 100 records. I have targets say in number 5. all target tables has parent and child relationships in between themselves. Now I want to load all 100 records into all targets. How U can ensure that record inserted in parent and then loaded into child.

3 Answers   Cognizant,


What are the new features of informatica 9.x developer?

0 Answers  


In aggregator if u enable sorted input what will be the output and disable sorted wt is output

6 Answers  


How can you join two tables without any common column present in them?

1 Answers   TCS,


Categories