How to send alternate records to two different targets - two ways to approach

Поделиться
HTML-код
  • Опубликовано: 24 окт 2024

Комментарии • 10

  • @SubratRout-fo9bh
    @SubratRout-fo9bh Год назад

    u can use Sequence generator and Expression to A-->a,B-->bb,C-->ccc,D-->dddd,E-->eeeee
    Let's assume the input string is named VALUE and the total length is named TOTAL_LENGTH.
    Then you will need the following additional ports in the EXP:
    - One variable port v_length, type Integer, with this expression term:
    Length(VALUE)
    - One variable port v_pad_val, type String (250), with this expression term:
    LPAD( SUBSTR( VALUE, 1, 1), 250, SUBSTR( VALUE, 1, 1))
    - One output port REPEATED_VALUE with this expression:
    SUBSTR( v_pad_val, 1, TOTAL_LENGTH)

  • @blackfalconf
    @blackfalconf 2 месяца назад

    Could it be that de seq transformation goes from 1 to 2? And then send to odd table those with 1 and to even table those with 2?
    Could this approach work for the next case where yo have 3, 4 or X number of target tables?

  • @akshayarajasekaran4173
    @akshayarajasekaran4173 Год назад

    Hi
    Without selecting the cycle checkbox and just giving the end value still the nextval gives alternate 1 and 2?

  • @azhark7060
    @azhark7060 9 месяцев назад

    may i know what type of questions and at what depth questions will be asked for 12+ years experience

  • @karangupta7027
    @karangupta7027 3 года назад

    Hey , is there need for expression transformation after sequence generator in both scenarios?? Or is it just for understanding purpose?

  • @pravinshahapure2936
    @pravinshahapure2936 3 года назад

    Hello Sir, pls upload the video of indirect load methodology with more than 25 files, Thanks

  • @WisdomWomenWarrior
    @WisdomWomenWarrior Год назад

    can u pls include a scenario for pyramid triangle data like A-->a,B-->bb,C-->ccc,D-->dddd,E-->eeeee pls explain the logic to execute this one .not by using normaliser pls

    • @anvyism
      @anvyism 4 месяца назад

      **Copied
      u can use Sequence generator and Expression to A-->a,B-->bb,C-->ccc,D-->dddd,E-->eeeee
      Let's assume the input string is named VALUE and the total length is named TOTAL_LENGTH.
      Then you will need the following additional ports in the EXP:
      - One variable port v_length, type Integer, with this expression term:
      Length(VALUE)
      - One variable port v_pad_val, type String (250), with this expression term:
      LPAD( SUBSTR( VALUE, 1, 1), 250, SUBSTR( VALUE, 1, 1))
      - One output port REPEATED_VALUE with this expression:
      SUBSTR( v_pad_val, 1, TOTAL_LENGTH)

  • @Vikas_Kollu
    @Vikas_Kollu 2 года назад +4

    Why can't we just use cyclic seq generatr and route fields?
    Is my approach correct?
    Like for alternate we will use cyclic seq generatr with values 1,2
    We will route the records with 1 into one target and 2 into another target..