suppose i have 1000 records and i want to load half of the
record in target 1 and half in target2.how u'll do?

Answers were Sorted based on User's Feedback



suppose i have 1000 records and i want to load half of the record in target 1 and half in target2.h..

Answer / koti

add seq generator to target. and make a look up to target..
then SQ--> Expr--> add two ports in expr. and define the
conditions as iif(sno<500,'true','false')-->router transf.
--> target and instance of target.
definetly it can works like SCD!

Is This Answer Correct ?    3 Yes 1 No

suppose i have 1000 records and i want to load half of the record in target 1 and half in target2.h..

Answer / gvk

SQ--->AGG SEQ
SOURCE ----->JOINER---->ROUTER---->TARGET1 AND TARGET2
SQ--->EXP


HERE AGG:1. CT---[O]--->COUNT(EMPNO)
2. NEWPORT---[O]--->1

EXP:1.NEWPORT----[O]---->1

JOINER:NEWPORT(EXP)=NEWPORT(AGG)

ROUTER: GROUP1--->NEXTVAL<=ROUND(CT/2)
GROUP2--->NEXTVAL>ROUND(CT/2)

Is This Answer Correct ?    3 Yes 1 No

suppose i have 1000 records and i want to load half of the record in target 1 and half in target2.h..

Answer / ramesh

src--->Exp--->Seq--->Rtr---->tgt
in sequence generator we will get a key and in rtr we will
mention condition

Is This Answer Correct ?    3 Yes 2 No

suppose i have 1000 records and i want to load half of the record in target 1 and half in target2.h..

Answer / shankar

SQ---->AGR---->RTR---->TGT
SEQ--->RTR

1) Pass all records to Agr
In AGR take count port ion taht give count(empno)
2)Next create SEQQUENCE GENERATOR connect nexval to router
3) Int RTR Create one Group called 1st half
In that give nextval<=count/2
4) Connect to TGTs from 2 groups (1st half and Default)

Is This Answer Correct ?    3 Yes 2 No

suppose i have 1000 records and i want to load half of the record in target 1 and half in target2.h..

Answer / sarat

Method Automated : Use an Unconnected lookup to count the SRC no. of records, and use it in the RTR.

Method Manual : Check COUNT(*) manually and use it in RTR( Not appreciate)

If Agg is used, one record gets loaded in one table only

Is This Answer Correct ?    0 Yes 0 No

suppose i have 1000 records and i want to load half of the record in target 1 and half in target2.h..

Answer / sanjay

By using the Router transformation we can load half of the
record in target 1 and half in target2.

src-->source qual--->Seq Generator(If
needed)--->router--->targets

Is This Answer Correct ?    1 Yes 3 No

suppose i have 1000 records and i want to load half of the record in target 1 and half in target2.h..

Answer / abhishek kumar

in aggregator---
record(field) group by
total_record <- count(record)
router---
condition1 <- (total_record)/2
default
send to target
condition1 to target first and
default to target second.

Is This Answer Correct ?    1 Yes 4 No

suppose i have 1000 records and i want to load half of the record in target 1 and half in target2.h..

Answer / mike

src-->source qual--->exp--->router--->target

based on the conditions we can use other trn's

correct me if i was wrong

Is This Answer Correct ?    7 Yes 11 No

suppose i have 1000 records and i want to load half of the record in target 1 and half in target2.h..

Answer / sandipan pal

at frist lode it to terget 1 after the transection is completed the lode it to terget 2.........

Is This Answer Correct ?    2 Yes 11 No

Post New Answer

More Informatica Interview Questions

what is the difference between informatica6.1 and infomatica7.1

0 Answers   TCS,


Can we use the mapping parameter or variables developed in one mapping into any other reusable transformation?

0 Answers  


If a session fails after loading of 10,000 records in to the target. How can you load the records from 10001 th record when u run the session next time?

4 Answers  


How can yoU improve session performance in aggregator transformation?

8 Answers   TCS,


In SCD type 2 if we had select date range. then suppose we had inserted today's date(eq. date is 30 aug 2010) then start date will be today's date(30 aug 2010) what will be the end date,we cant leave it blank?

2 Answers   Cognizant, emc2,






suppose my source is 101 a 1o1 b 101 c 101 d i want target like that 101 abcd how will u achive this please give me the answer

1 Answers   TCS,


What aer the out put files that the informatica server creates during the session running?

4 Answers  


Why use shortcuts(Instead of making copies).

1 Answers  


how to return multiple columes through through un-connect lookup?

1 Answers   DELL,


How to delete duplicate records in a flat file source?

2 Answers  


1)What is Data Masking in informatica? 2)How to restrict junk characters while loading data into target. 3) what happen if i won't pass sorted input in a transformation.

0 Answers  


My questions is i create a two sessions for one mapping.but my requirement is if all number of source records are same as in target then execute first session or some rows are rejected due to t/r logic so session two was execute please clarify

1 Answers   TCS,


Categories