following source
name gender
ramya female
ram male
deesha female
david male
kumar male
i want the target
male female
ram ramya
david deesha
kumar
any body give solution above question?
Answer Posted / star
Not sure if this has to be solved by SQL or by informatica -
and source is a table or file.
select * from (select lead(gender,0,0) over (partition by
gender), lead(gender,1,0) over (partition by gender) from
table1) where rownum=1
union all
select t1.name, t2.name from
(select name,row_number() over (partition by name) from
table1 where gender='male') t1,
(select name,row_number() over (partition by name) from
table1 where gender='female') t2
where
t1.name(+) = t2.name(+)
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is workflow monitor?
How to update or delete the rows in a target, which do not have key fields?
Under what conditions selecting sorted input in aggregator will still not boost session performance?
How many types of sessions are there in informatica.please explain them?
How do you migrate data from one environment to another?
Can one use mapping parameter or variables created in one mapping into any other reusable transformation?
Explain the types of lookup transformation?
What are roles and groups and benefits of using them?
I am new to informatica and learning it,can anybody please tell me how we receive source as flat file in informatica,from where we get this flat file?
What is standalone command task?
Difference between Target-based loading and constraint-based loading?
Suppose we have a source qualifier transformation that populates two target tables. How do you ensure tgt2 is loaded after tgt1?
Tell me can we override a native sql query within informatica? Where do we do it? How do we do it?
While migrating the data from one environment to another environment how would you manage the connections?
How to create the source and target database connections in server manager?