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?

Answers were Sorted based on User's Feedback



following source name gender ramya female ram male deesha female david male kumar male i wa..

Answer / zer0

Create the mapping as below:

EXP1 ---> SRT1
/ \
Src --> Router Joiner ---> EXP3 ---> Targ
\ /
EXP2 ---> SRT2

Router: Filter on the basis of gender. All records with
gender male wil go into EXP1 and the records with gender
female will go into EXP2.
In EXP1 and EXP2, create a variable dummy port (Seq_Var)
with value Seq_Var+1 and an output port Seq_Out (value-
Seq_Var).
Pass the name and sequence ports from EXP1 and EXP2 to SRT1
and SRT2 (sorter) respectively.
In SRT1 and SRT2, sort on the basis of sequence.
In Joiner, use 'Full Outer Join' and keep 'Sorted Input'
checked in properties.
Pass the male name values and female name values from
joiner to EXP3 (Gather all the data). Pass all the data to
Target.

Is This Answer Correct ?    12 Yes 2 No

following source name gender ramya female ram male deesha female david male kumar male i wa..

Answer / chiky

map1
map1
1.source
2.sorter
3.filter ( gender = male)
4.connect to male_name column in target

map2
1.source
2.sorter
3.filter( gender = female)
4.connect to female_namw column in same target)

target load plan 1,2
start the load.

Is This Answer Correct ?    1 Yes 0 No

following source name gender ramya female ram male deesha female david male kumar male i wa..

Answer / vicky

select name as male from table where gender= 'male'
union select name as female from table where gender='female'

Is This Answer Correct ?    2 Yes 2 No

following source name gender ramya female ram male deesha female david male kumar male i wa..

Answer / rakesh ameta

select male,female from
(select row_number() over (order by (select 1)) as ID,names as male from gen where genders='male') a
FULL join
(select row_number() over (order by (select 1)) as ID,names as female from gen where genders='female') b
on a.id=b.id

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More Informatica Interview Questions

Mapplets can you use an active transformation in a mapplet,

1 Answers  


To Provide Support For Mainframes Source Data, which Files Are Used As A Source Definitions?

0 Answers   Informatica,


My source is EmpID, Salary- (101, 1000)(102, 2000)(103, 3000). In the Target I want the following EmpID, Salary, Composite_Salary- (101, 1000, 1000)(102, 2000, 3000)(103, 3000, 6000). Please guide on how to build the mapping.

5 Answers   Amdocs,


What are the different types of Type2 dimension maping?

2 Answers   CTS,


following scenario i have 1000 record flatfile source i want ist row to ist target 2nd eow to 2nd target 3rd row to 3rd target how will u do?

7 Answers   Polaris,






What do you mean by DTM and Load manager and what is difference between load manager and load balancer?

0 Answers  


Define pmcmd command?

0 Answers  


In session log thier should not be a single error how will u do

3 Answers   HCL,


List the transformation in informatica.

1 Answers   TCS,


What is sq transformation?

0 Answers  


I have a scenario like - how can i load 1st record to Trgt1,2nd->Trgt2, 3rd->Trgt3 and again the cycle has to repeat with loading 4th->Trgt1,5th->Trgt2,6th->Trgt3?

3 Answers   ITC Infotech, TCS,


what are the differences between powercenter 8.1 and powercenter 8.5?

2 Answers  


Categories