Results 1 to 4 of 4

Thread: In my source table I have two columns

  1. #1
    Geek_Guest
    Guest

    In my source table I have two columns

    In my source table I have two columns, there values like

    1 A1 B1 C2 G2 H2 I3 L3 M

    I want to get in target like this...
    1 A*B*C2 G*H*I3 L*M

    Please anyone can solve this...

    Thanks in advance...

    Question asked by visitor Haritha


  2. #2
    Contributing Member
    Join Date
    May 2007
    Answers
    45

    Re: In my source table I have two columns

    Question wasn't clear

    Thx
    SRIRAM N
    Hope Everything Good

  3. #3
    Junior Member
    Join Date
    Mar 2008
    Answers
    1

    Re: In my source table I have two columns

    Dear Friend,

    Could you please more specific with your question? Because the question is not very clear.


  4. #4
    Junior Member
    Join Date
    Mar 2008
    Answers
    15

    Re: In my source table I have two columns

    Hi,

    If im not mistaken ur qn is
    Src
    1 A
    1 B
    1 C
    2 G
    2 H
    2 I
    3 L
    3 M

    I want to get in target like this...
    1 A*B*C
    2 G*H*I
    3 L*M

    U can designate the column names as ID and NAME.
    Use an expression transformation.Declare two variables for ID and NAME.
    ie NAME_V PORT use the expression
    IIF(ID_V=ID,NAME_V||'*'||NAME,NAME)
    ID_V PORT
    IIF(ID_V!=ID,ID,ID_V)

    Next pass these ports to an aggregator transformation and do GROUP BY ID.
    Then pass to target..

    Try this ..It will work perfect...

    Regards
    Tanya


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