Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to send duplicates to one target and unique rows to one
target?target is empty

Answers were Sorted based on User's Feedback



How to send duplicates to one target and unique rows to one target?target is empty..

Answer / kesava reddy

Using Source Qualifier Trnsformation ,
Explantion:
1.Take 2 Source Qualifier Transformations,and
2.One sq ports connect to Target(Unique Target) then Write
a SQL Query (sqlOverride) ,
SELECT DISTINCT EMPNO,ENAME
FROM EMP;
3.TAKE ANOTHER SQ AND CONNECT TO ALL PORTS TO TARGET,THEN
DEVELOP THE SQLOVERRIDE,
SELECT * FROM EMP WHERE ROWID IN(SELECT ROWID FROM EMP
MINUS
SELECT MAX(ROWID) FROM EMP
GROUP BY EMPNO,ENAME)

Is This Answer Correct ?    7 Yes 2 No

How to send duplicates to one target and unique rows to one target?target is empty..

Answer / shiva

s-->sq-->agg-->rtr-->tgt1
'--> tgt2

in aggr take two ports count(*)=1
count(*)>1 take group by on column


send this to rtr(create 2 groups in rtr)

Is This Answer Correct ?    5 Yes 2 No

How to send duplicates to one target and unique rows to one target?target is empty..

Answer / mohan

Here is the minor modification on Answer #6 posted by me,
SQ-->Sorter-->Expression-->Router-->Targets

Sorter Transformation: Sort by key column(EMP_ID)
Expression Transformation:
V_Match(variable port) =IIF(EMPNO=V_OLD_EMPNO,1,0)
V_OLD_EMPNO(Variable)= EMP_ID
O_EMPNO(output)= V_MATCH

Router Transformation:
create two groups under groups tab,
Original : O_EMPNO=0
Duplicates: o_EMPNO=1 

Is This Answer Correct ?    3 Yes 0 No

How to send duplicates to one target and unique rows to one target?target is empty..

Answer / naresh araveti

source> dynamic lookup>router,2 conditions 1. condition
if column_lkp port is null then insert into target1(unqie)
2. condtion if COLumn_lkp port is not null then insert into
target2(duplicates)

Is This Answer Correct ?    4 Yes 3 No

How to send duplicates to one target and unique rows to one target?target is empty..

Answer / ram mohan reddy

we can do this process by 2 ways ....
1)by dynamic lookup option in lookup(new lookup row) we can
load duplicate rows in one target table and unique rows in
one target table
do to this we need to have router transformation (add to
group ports one is for unique(new lookup row=1) and other is
for duplicate(new lookup row =2))after the lookup trans.
2)we can perform this by aggregator transformation using
coutnt(*) >1 for duplicate rows .here also we need to use
router transformion.

Is This Answer Correct ?    3 Yes 2 No

How to send duplicates to one target and unique rows to one target?target is empty..

Answer / venkat

S->S.Q->Aggr->Rtr->T1
->T2


Where Aggr take group by option
Rtr group1 condition reccount>1..........>T1
Rtr default group to....................>T2


T1 records are unic records
T2 records are duplicate records

Is This Answer Correct ?    3 Yes 2 No

How to send duplicates to one target and unique rows to one target?target is empty..

Answer / mohan

SQ-->Sorter-->Expression-->Router-->TGT

Sorter: Sort by key column(EMP_ID)
Expression:
V_OLD_EMPNO EMP_ID
V_Match IIF(EMPNO=V_OLD_EMPNO,1,0)
O_EMPNO V_MATCH

Router:
create two groups under groups tab,
Original : O_EMPNO=0
Duplicates: o_EMPNO=1

Is This Answer Correct ?    0 Yes 0 No

How to send duplicates to one target and unique rows to one target?target is empty..

Answer / vaas

Hi All,

One tbl has duplicate values means it does not has PK.In
this case can we use dynamic lookup.

Pl let me know, on vaas31@yahoo.in

Is This Answer Correct ?    0 Yes 2 No

How to send duplicates to one target and unique rows to one target?target is empty..

Answer / dwhlabs

1> using dynamiclookup concept
2> using variable concept

First solution

source > sorter >dynamic lookup > filter > Target1 and
Target2

for more abt informatica mappings ... www.dwhlabs.in

Is This Answer Correct ?    1 Yes 8 No

Post New Answer

More Informatica Interview Questions

Hi, I have one flatfile as target in a mapping . When i am trying to load data second time into it. The records already is in flatfile is getting override. I don't want to override existing records. Note : we can do this by implementing CDC / Incremental pool logic if target is relational . But this is flatfile. So, even i use this same technique it will override only So what is the solution ? Is there any option at session level for flatfile target ? Advance Thanks

4 Answers   IBM,


How to handle decimal places while importing a flatfile into informatica?

0 Answers  


In update strategy t/r we had given dd_insert condition & in session we gave delete condition . Then what will happen? mapping will run ?

3 Answers   emc2,


What is the surrogate key?

0 Answers  


explain any diffcult scenario that u have faced in your experience... or explain any complex maping u have developed?

0 Answers   TCS, Wipro,


what is the size of ur database(like oracle)

2 Answers   HP,


write sql query following source table jan feb mar apr 100 200 300 400 500 600 700 800 900 100 200 300 i want the output format like month total jan 1500 feb 900 mar 1200 apr 1500

3 Answers   Accenture,


What is informatica? What exactly are the practical uses in real world

2 Answers  


How to load duplicate records in to a target table which has a primary key?

2 Answers  


WAT IS THE MEANING OF UPGRADTION OF REPOSITORY?

1 Answers   Wipro,


PLS REAL TIMERS IAM WAITING FOR FAVOROBLE REPLY..REGARDING ETL TESTING INFORMATION...ETL TESTER NEEDS ETL DEVOLPMENT KNOWLEDGE OR NOT..?. IF HE NEED DEVLPMNT KNOW WHAT HE LEANR FIRST... AS A DEVOLOPER U KNOW THE ETL TESTING PROCESS.. PLS EXPLAIN IN DETAIL THANK U

2 Answers  


How do you implement unconn. Stored proc. In a mapping?

1 Answers  


Categories