Results 1 to 4 of 4

Thread: Load from source to different targets

  1. #1
    Junior Member
    Join Date
    Sep 2007
    Answers
    1

    Load from source to different targets

    Scenario

    I have one table with 100 records. I have 5 diff targets.. From the source the first row should go to 1 target , II row to II target etc V th row to 5 th tgt.. Again 6 th row to 1 , 7 row to 2 tgt.. etc.. How to do this?


  2. #2
    Contributing Member
    Join Date
    Dec 2007
    Answers
    34

    Re: Load from source to different targets

    Hi Raju,

    Using Round Robin Partition, we can do that scenario.

    Thx,
    Prakash


  3. #3
    Junior Member
    Join Date
    Sep 2007
    Answers
    13

    Smile Re: Load from source to different targets

    Quote Originally Posted by cme_prak View Post
    Hi Raju,

    Using Round Robin Partition, we can do that scenario.

    Thx,
    Prakash
    Hi Raju,

    Can u please explain me how to use Round robin partition. I am novice to DW and never heard of this before.

    Thanks in advance,
    Divya


  4. #4
    Junior Member
    Join Date
    Sep 2007
    Answers
    13

    Re: Load from source to different targets

    I dnt know about Round Robin thing. You can achive this by using sequence generator transformation..
    1) Import ur source table.
    2) create a sequence generator transformation start by one n increment by one.
    3) create expression transformation, get mod(NEXTVAL,5). Next one more field use decode function DECODE(mod_value,1,1,2,2,3,3,4,4,0,5)
    4) Then pass them to router to route them to different targets based on decode value.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact