we have 20 records in source system, when we run for the 1st
time, it should load only 10 records into the target, when
you run for the second time it should load another 10 record
which are not loaded. How do we do that? Can we write a SQL
query in source qualifier to do it. This q' is asked in one
f the interviews. Please let me know if anyone knows. Thanks

Answers were Sorted based on User's Feedback



we have 20 records in source system, when we run for the 1st time, it should load only 10 records ..

Answer / suresh

SQ ==> select rownum as num,col1,col2,.. from table
FLT ==> num >= MVar1 and num <=MVar2

Mvar1 and MVar2 are assigned with the value of 1 and 10 respectively

in EXP=>V-port - setvariable(mvar1, 10)
V-port - setvariable(mvar1, 20)

after the execution of the mapping 10 and 20 values are stored in the mvar1 and mvar2 into the repository

Is This Answer Correct ?    0 Yes 0 No

we have 20 records in source system, when we run for the 1st time, it should load only 10 records ..

Answer / santosh

1. Create a mapping variable $$SESSION.
2. Link from SQ to Router t/r.
3. Create two group
a. SETMAXVARIABLE($$SESSION,$$SESSION+1) % 2 = 1
b. SETMAXVARIABLE($$SESSION,$$SESSION+1) % 2 = 0
4. Link both group to two filter and create two Sequence geneter and check the reset option.
5. Link the sequence generator to filter t/r.
6. Keep the condition as "NEXTVAL<=10" for first filter.
7. Keep the condition as "NEXTVAL>10" for second filter.
8. Link the two filter to two different target instance.

Let me know if any things wrong.

Thanks & Regards
Santosh Kumar Sarangi

Is This Answer Correct ?    1 Yes 1 No

we have 20 records in source system, when we run for the 1st time, it should load only 10 records ..

Answer / babu

Hi,
If u r source is Relational,then u can write sqloverride.
i.e
SQ ==> select rownum as num,col1,col2,.. from table
FLT ==> (num >= MVar1 and num <=MVar2)

NOTE: MVar1,MVar2 are mapping variables the initial values
of these variables 1,10 with respectivelly.

after completion of firsst run the variables are increased
11,20 respectivelly.all are knows how to declare the
mapping variables.
IF THERE IS ANY WRONG PLEASE CORRECT ME.

Thanks,
Babu

Is This Answer Correct ?    2 Yes 4 No

Post New Answer

More Informatica Interview Questions

What do you mean by Parameter file? Why do we use it and what all things we can define in a parameter file?

1 Answers  


How is Data Models Used in Practice?

1 Answers  


hi, as al you know, we can set the option in session level as all rows treat as like insert,update etc., And also we have update strategy for flaging records as insert,update etc.. then when we will go for above options and what is the difference.. explain..

1 Answers   Wipro,


What is the session task and command task?

0 Answers  


a soure table has 100 records how to load into 3 target tables in a cumulative order source target1 target2 target3 --------- ------------------------------------- 1-100 1 2 3 4 5 6 - - - 98 99 100

2 Answers   Cap Gemini,






in staging we are merging the data and remove the inconsistants data that type of situation what u will done and type of functions u can use

0 Answers   TCS,


What is the difference between Junk and Confirmed Dimention? where can be used htat one in Informatica?

3 Answers  


In joiner, how to load Master table in Target?

2 Answers  


can u explain me banking domain projects ? and in banking domain projects how many dimension tables and how many fact tables and how to load source and targets in mapping level plese expain give me one example?

1 Answers   Accenture, Cognizant, HCL, IBM, iGate, L&T, TCS, Virtusa,


"Change cache" in Informatica ?

2 Answers  


Explain about Recovering sessions?

1 Answers  


What is the main difference between a Joiner Transformation and Union Transformation?

5 Answers  


Categories