How will you update the first four rows and insert next
four rows in a mapping?
Answers were Sorted based on User's Feedback
Answer / shyam
from source qualifier trf take a exp trf with a sequence gen
and from there give it to filer trf. write there a condition
next value<=4 and give it to update stategy trk. and there
give condion as dd_insert and then to targer,this all comes
in first pipeline.
in second pipeline drag the ports from exp trf and again
take a filter trf,over there give condion as next_val>4 and
next_val<9. give this to update trf and then to targer.
try this .i hope u vl get the o/p.
if im wrong plz let me know
shaym
| Is This Answer Correct ? | 12 Yes | 0 No |
Answer / tejal
We can use an expression transform after the source quailifier - define a variable / counter port and increment it for each run.
Output this counter value and pass it to a router , which has 2 groups based on this value counter <=4 then insert else update.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / vali
i can explain it more clear that we have to place a rank
t/r before router and create two groups in router and given
it to update strategy....
src->sq->rank->router->ups->trg
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / srini
generate sequence number and use mod function in router t/r.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / adisekhar
->->UPS->TAR
MAPPING DIAGRAM LIKE SRC->SQL->RTR->
->UPS->TAR
| Is This Answer Correct ? | 1 Yes | 3 No |
Normalizer transformation is not involved in Mapplet.. why???
i have n number of records in my source, i want first and last record to my target. how can u implement this scenario .
There is a table with emp salary column how to get the fields belongs to the salary greater than the average salary of particular department. Write a query
in my source table i want to delete first and last records and load in between records into target? how can it possible?
3 Answers HCL, Thomson Reuters,
which transformation should we use to get the 5th rank member from a table in informatica?can we achieve this in sql?
HOW CAN U FIND THE SESSION START TIME? chandumba2005@gmai.com
What is status code?
Which transformation can be created only as reusable transformation but not as non-reusable transformation?
Flat file heaving 1 lack records and I want to push 52000 records to the target?
What are the join types in joiner transformation?
What are the basic requirements to join two sources in a source qualifier transformation using default join?
What do you mean by channel change?