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 extract original records at one target & Duplicate
records at one target?

Answers were Sorted based on User's Feedback



How to extract original records at one target & Duplicate records at one target?..

Answer / sks

Hi,
Yes you can do it by using Expression transformation as
well. Infact, by using 2 SQ (source qualifier) and using
sql queries (as I explained earlier), you can perform the
required task on relational tables only (but not on flat
files etc).
In the case of flat files as source, you will need to use
Expression transformation. But you also need to use sorter
before expression (otherwise record flag will change for
every incoming record & duplicates won't be traced). The
sequence of transformations will be as follows -

Source -> SQ -> Sorter ->Expression ->Router(or 2 filters) -
>Targets

Is This Answer Correct ?    6 Yes 1 No

How to extract original records at one target & Duplicate records at one target?..

Answer / shankar

First Pipeline:

SQ--Sort---Tgt1

Second Pipeline:

SQ--Lkp on Tgt1--If The value is matched from both the table
send it to Tgt2.

Use target load plan while u run the session...

Is This Answer Correct ?    1 Yes 0 No

How to extract original records at one target & Duplicate records at one target?..

Answer / amrita

can you tell me scèneario.

Is This Answer Correct ?    4 Yes 4 No

How to extract original records at one target & Duplicate records at one target?..

Answer / krishnakanth.ch

yes... add a new column in the sql override by calculating
the count(*) to get how many times the record is repeating.
Using Router we can seperate them into two different
targets.

Is This Answer Correct ?    1 Yes 1 No

How to extract original records at one target & Duplicate records at one target?..

Answer / sujan reddy

hi

Is This Answer Correct ?    0 Yes 0 No

How to extract original records at one target & Duplicate records at one target?..

Answer / davan

sq-->sort--exp--riuder--tg1--tg2
In exp V_flag=iif(empno=p_empno,v_flag+1,1)--variable port
p_empno=empno--variable port
0_flag=v_flag--output port
In rouder o_flag>1 one target,default one target

Is This Answer Correct ?    0 Yes 0 No

How to extract original records at one target & Duplicate records at one target?..

Answer / kumar

The scenario's.. i want, duplicate records from a table to a
target.. n remaining records to b on another target...

Is This Answer Correct ?    0 Yes 1 No

How to extract original records at one target & Duplicate records at one target?..

Answer / sunil

Its not very clear by using expression transformation.Can
any one eloberate. I am creating one variable port VAR_EMPNO
in exp and giving value as EMPNO.Created one output port
EMPVAR_OP with cond : IFF(EMPNO = VAR_EMPNO,1,0) Based on
this I am filtering and redirecting to two targets but its
not working, is the expression fine over here?

Is This Answer Correct ?    1 Yes 2 No

How to extract original records at one target & Duplicate records at one target?..

Answer / vineeth

using connected lookup

Is This Answer Correct ?    0 Yes 1 No

How to extract original records at one target & Duplicate records at one target?..

Answer / sks

Hi,
If I understand your question correctly, then it is like-
How to send original (distinct) records to one target
(let's say TA) and duplicates to another target (let's say
TB).
It can simply be done as follows -
In your mapping, take the source table containing whole
records (duplicates as well). Now, take 2 source qualifier
(SQ) transformations. The first SQ should
contain 'Distinct' sql query (hope you know that) and the
output ports should go to TA table.
The second SQ should contain the following sql stmt (which
filters only the duplicate records) -
-------------------------------------------
SELECT empno, ename, job, mgr, hiredate, sal, comm, deptno
FROM (SELECT empno, ename, job, mgr, hiredate, sal, comm,
deptno, ROW_NUMBER() OVER (PARTITION BY empno ORDER BY
EMPNO) rn FROM s_assign_1_emp)
WHERE rn > 1
-------------------------------------------
I am using emp table example (hope you can understand it).
Now, the output ports of the seecond SQ should go to TB
table.
This is the simplest way of doing it. Hope it will help.

If you feel any issue, please let me know at
shrikant_rps@yahoo.com

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Informatica Interview Questions

can we load the data with out a primary key of a table? what is target plan?

6 Answers   IBM,


how the informatica server sorts the strings values in rank transformations?

3 Answers   TCS,


Hi, I am working on informatia in a support role. We used stored procedures in informatica and other than that I never got a chance to work on PL/SQL,little on Unix scripts. But I heard people asking about PL/SQL alot. Can any one let me know how do we use PL/SQL with informatica and if required what is the knowledge that we need to have on PL/SQL? Please let me know in detail which would really help me alot in my career prospectus.

1 Answers   Accenture,


what is SDLC way of code development?

0 Answers  


what is mystery dimension?

1 Answers  


can we import source table without using source qualifier? if yes then how? if no then why?

2 Answers   Thomson Reuters,


While importing the relational source defintion from database,what are the meta data of source U import?

1 Answers  


How an expression transformation differs from aggregator transformation?

0 Answers  


How do you migrate data from one environment to another?

0 Answers  


i have an aggregater in my mapping and no group by port on any column and i ampassing 100 rows through aggregater,so how many rows i will get as out put from aggregater

5 Answers  


how many types of dimensions are available in informatica?

0 Answers  


1)how to generate sequnce numbers in informatica without using sequnce genarator transformation. 2)i have number of records in my sourse, but iwant to display first and last record only. how it is possible in informatica. 3)i want to update the records without using updatestrategy transformation. 4)what is diffrance between ab-intio and datastage than compared to informatica. 5)what is the latest version of informatica in our field.

5 Answers   CTS,


Categories