Results 1 to 4 of 4

Thread: Row to Column

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

    Smile Row to Column

    Hi all, src ---- id colname colval -- --------- -------- 1 name prakash 1 age 24 1 sal 350000 2 name srini 2 sal 25000 tgt ---- id name age sal 1 prakash 24 35000 2 srini 25000 the above mentioned is my scenerio. How to solve this scenrio? thx prakash


  2. #2
    Junior Member
    Join Date
    Jan 2008
    Answers
    5

    Re: Row to Column

    In Informatica:
    step1:Use Router Trans to group based on colname, you will get 3 groups
    1.colname='name'
    2.colname='age'
    3.colname='sal'
    step2:3 Exp Trans after router, collect id and colval from each group
    step3: use two joiners to collect the record on id(use sorted i/p to joiners)

    This logic drops records if any of the fields is missing(name,age,sal)

    Fell free to post comments on this reply


  3. #3
    Junior Member
    Join Date
    Jan 2008
    Answers
    5

    Re: Row to Column

    u can achive this by using a router and two joiners


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

    Smile Re: Row to Column

    Hi Mark,

    I finished that scenerio, using one expression and the aggregator.

    Thx
    Prakash


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