Let’s say I have more than have record in source table and I
have 3 destination table A,B,C. I have to insert first 1 to
10 records in A then 11 to 20 in B and 21 to 30 in C.
Then again from 31 to 40 in A, 41 to 50 in B and 51 to 60 in
C……So on up to last record.

Answer Posted / ankit kansal

The above answer is work perfectly fine however if interviewer asks to do it with sequence then you can opt this approach.

1)Create a mapping variable of integer type and assign a default value of 30.
2)Mapping Design
SRC->SQ->EXP->ROUTER->TGT
3)EXPRESSION
in_rec i|o in_rec
count v IIF(count<=mapping_variable,count+1,0)
out_count o count

And then using the router route the records to different targets.

http://deepinopensource.blogspot.com/

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the procedure for creating independent data marts from informatica 7.1?

563


Explain what transformation and how many are there in informatica?

482


How do you take back up of repository?

717


What are the static cache and dynamic cache in informatica?

710


I am not able to connect to the domain with the client although all services and databases are up and there is no network issue?

598






What is target designer and target load order?

652


-Which expression we can not use in Maplets?, -Can we join(relate) two dimensions in a schema? -Why and where we use 'sorted input' option?

4970


COL1,COL2 ABC,1 XYZ,2 HERE IN COL2 VALUES 1,2 NOT STSANDARD(IE MEANS NOT FIXED VALUES LIKE OTHER SOME VALUES LIKE 10,20) O/P IS COL1,COL2 ABC,2 XYZ,1

1528


explain about unit testing? in real time?

1657


What is rank index in rank transformation?

603


What is resilience time?

652


Which is the t/r that builts only single cache memory?

707


Performance tuning( what you did in performance tuning)

1484


What are the types of caches in lookup?

565


How to delete duplicate row using informatica?

604