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...

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 are the different types of repositories created using informatica?

1169


How can we delete duplicate rows from flat files?

1309


How do you load first and last records into target table? How many ways are there to do it? Explain through mapping flows.

1179


Define pmcmd command?

1105


Mention few power centre client applications with their basic purpose?

1002


What is rank transformation?

1035


What are the different versions of informatica?

1333


What is event and what are the tasks related to it?

1203


What is the scenario which compels informatica server to reject files?

1122


can any one explain about dataflow in the informatica project for bank domain....thanks is advance

10728


Enlist the tasks for which source qualifier transformation is used.

1075


How to use procedural logic inside infromatica?

1321


what are the Methods For Creating Reusable Transformations?

1254


Briefly explain the aggregator transformation?

1067


What is session task and command task?

1395