ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Data Warehouse  >>  Informatica
 
 


 

 
 Teradata interview questions  Teradata Interview Questions
 Business Objects interview questions  Business Objects Interview Questions
 Cognos interview questions  Cognos Interview Questions
 Informatica interview questions  Informatica Interview Questions
 Crystal Enterprise Suite interview questions  Crystal Enterprise Suite Interview Questions
 Actuate interview questions  Actuate Interview Questions
 Ab Initio interview questions  Ab Initio Interview Questions
 Data Stage interview questions  Data Stage Interview Questions
 SAS interview questions  SAS Interview Questions
 Micro Strategy interview questions  Micro Strategy Interview Questions
 ETL interview questions  ETL Interview Questions
 Data Warehouse General interview questions  Data Warehouse General Interview Questions
Question
How to extract original records at one target & Duplicate
records at one target?
 Question Submitted By :: Kumar
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to extract original records at one target & Duplicate records at one target?
Answer
# 1
can you tell me scèneario.
 
Is This Answer Correct ?    1 Yes 1 No
Amrita
 
  Re: How to extract original records at one target & Duplicate records at one target?
Answer
# 2
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 0 No
Kumar
 
 
 
  Re: How to extract original records at one target & Duplicate records at one target?
Answer
# 3
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 ?    0 Yes 1 No
Sks
 
  Re: How to extract original records at one target & Duplicate records at one target?
Answer
# 4
Hi You can do this another way also
put the expresession transforamtion and read some previous
record with the currect record or any unique column value in
the expression and if they are equal then assign the
flag(means duplicate flag) else
assign the new flage.
pass the duplicate flag records to the filter and goes to
the TB(duplicate records target) and unique values to the
origonal target
 
Is This Answer Correct ?    0 Yes 0 No
Rag
 
  Re: How to extract original records at one target & Duplicate records at one target?
Answer
# 5
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 ?    0 Yes 0 No
Sks
 

 
 
 
Other Informatica Interview Questions
 
  Question Asked @ Answers
 
What is staging area?  5
i have one table like cust_id ph1 ph2 ph3 1002 9290123526 97671927210 9876545232 we use Normalizer wt is o/p? sue normalizer we can generate three tables in single table/  3
Whatis the difference between View and Materialized View ? Satyam5
How to recover sessions in concurrent batches?  2
What is A cache?  1
How to delete duplicate records in a flat file source?  1
What is Performance tuning in Informatica? GE1
What is the difference between OLTP and ODS?  2
What is data merging, data cleansing and sampling? Satyam4
In a mapping i have three dimensions. If i want to pass a same surrogate key value to all the three dimensions by using one sequence generator is possible?If the mapping is containing single flow? And in the same case if the mapping is contaning 3 flows for the three dimensions then by using one sequence generator can we populate surrogate key (same value) to all the three dimensions?  6
In a sequential batch can u run the session if previous session fails?  2
What are the types of lookup? Wipro3
In joiner, how to load Master table in Target?  2
How to find from a source which has 10,000 records, find the average between 500th to 600th record?  1
What is a taget load order? IBM1
what is Partitioning ? where we can use Partition?  1
What are the mapings that we use for slowly changing dimension table?  2
1.why we need to use unconnected transformation? 2.where we can static chach,dynamic chach Virtusa4
How the Informatica Server reads perameter file?  1
After dragging the ports of 3 sources sqlserver,oracle,informix to single source qualiofier can we map these ports directly to target and how?  2
 
For more Informatica Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com