top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

Loading the target tables

+1 vote
36 views

If suppose I have source with seven records from that first three must go in 3 target instances and 4th record again have to go into first target how can I achieve it?

posted May 15, 2014 by Madhavi Kumari

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

0 votes

Here is one way to achieve this result.

enter image description here

I use a sequence transformation to generate a series of numbers (starting with 1., increment by 1..).

I then route the table rows into one of the three targets based on this sequence number (using mod(nextval,3)) which will result in 0,1 or 2. Here are the three groups for the Router.

Group 1 : MOD(NEXTVAL,3)=0
Group 2 : MOD(NEXTVAL,3)=1
Group 3 : MOD(NEXTVAL,3)=2

Also, could you please explain why you need the table be loaded into multiple instances?
I have never really come across such scenarios before.

answer May 19, 2014 by Shweta Singh
Similar Questions
+1 vote

Suppose we have two Source Qualifier transformations SQ1 and SQ2 connected to Target tables TGT1 and TGT2 respectively. How do you ensure TGT2 is loaded after TGT1?

+1 vote

If session fails after loading 10000 records in the target, how can we load 10001 the record when we run the session in the next time?

+1 vote

What is the method of loading 5 flat files of having same structure to a single target and which transformations I can use?

+2 votes

Suppose we have a Source Qualifier transformation that populates two target tables. How do we ensure TGT2 is loaded after TGT1?

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...