Duplicate Records

If 5 records are there in source, how will you make 10 in targets (double the number of records in source, duplicate source records)?

Questions by kalpana2u95   answers by kalpana2u95

Showing Answers 1 - 34 of 34 Answers

Simple way is the below one:


Take two paths of same source, use Target Load Order.

Read same data for two times and load the same to target.

* Target must not contain any constraints or primary key, which rejects the data

Experts will this work???

Thanks
Sriram N
IT Analyst

  Was this answer useful?  Yes

I guess we can do that task by using a sql statement in source qualifier. If you put this query SELECT * from dept d1 union all select * from dept d2 in source qualifier and link to the target table you will see duplicates.. double the number of records in source table.

  Was this answer useful?  Yes

You can simply take a normalizer transformation and in that transformation you can specify the occurances to 2(by default it is 0). The output will be doubled of the input given records...

Try it.
it works..

  Was this answer useful?  Yes

Its just simple use the source two times and a target should not contain any
constraints like primary, check etc. and use a union transformation and map the
output of union to target, thats it.
One more way is by using a single source take two targets named same and drag
the source rows for two targets and be shore that target should not contain the
constraints.


Cheers
Teja


  Was this answer useful?  Yes

Surya

  • Aug 5th, 2011
 

take target as two instances

  Was this answer useful?  Yes

Niranjan

  • Apr 7th, 2016
 

Use for loop in Java Transformation

  Was this answer useful?  Yes

Anupam Kumar

  • Apr 8th, 2016
 

Use Router. Create two group and just put TRUE in both

  Was this answer useful?  Yes

Anil

  • Jun 22nd, 2016
 

We can do it by taking expression t/r and 2 instances of same target and connecting from same exp to 2 targets!

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions