I have some rows in source.I have to map half rows to one target and half rows to another target.i.e you wont know how many records in source.?Implement a mapping?

Answer Posted / dilip ingole

use sql override in SQ
ans use query as fellow

SELECT NUM,CASE WHEN ROWNUM <=(SELECT COUNT(1)/2 FROM TABLE_NAME) THEN 1 ELSE 0 END FLAG FROM TABLE_NAME;

in informatica filter record based on flag if flag is 1 then send it to one target else to second target

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is union transformation in informatica?

708


Can you use flat files in Mapplets.

2236


Differentiate between joiner and lookup transformation?

626


How to display session logs based upon particular dates. If I want to display session logs for 1 week from a particular date how can I do it without using unix. ?

1620


what are factless facts? And in which scenario will you use such kinds of fact tables.

1329






Enlist the tasks for which source qualifier transformation is used.

598


The question was on time stamp. what is the difference between HH and HH24 when to use when.

1573


What is meant by pre and post session shell command?

641


Explain in detail about scd type 1 through mapping.

601


Briefly define reusable transformation?

643


What are the differences between a connected lookup and unconnected lookup?

658


What is different between the data warehouse and data mart?

647


Explain the pipeline partition with real time example?

668


What are the main issues while working with flat files as source and as targets ?

668


what is the size of u r source(like file or table)?

1834