Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Suppose in the next version of Informatica, RTR Xn is excluded. Then how will u route data to different tgts?

2 Answers   Deloitte,


why normalizer transformation can not used in mapplet? plzzzz answer

2 Answers   Syntel,


How can repository reports be accessed without sql or other transformations?

0 Answers  


What is deployemnt groups, Lables, query and dynamic deployment group.

1 Answers   IBM, SVP,


What is source qualifier?

6 Answers   SDS,


What is the need of an ETL tool?

0 Answers   Informatica,


when we go for unconnected lookup transformation? and why?

5 Answers   Accenture,


how to sort date field in infomatica?

2 Answers  


what is incremantal aggregation?

1 Answers  


Enlist few areas or real-time situations where informatica is required.

0 Answers  


hi,this is satheesh working as pl/sql resource in MNC.i just wanna switch to informatica.Could you please let me know what is the best way to learn informatica.what are the best coaching centres available in chennai?Is there any coaching centre will give me a real time experience? informatica

0 Answers  


Please let me know how we can implement the below scenario. In a single mapping,more than 500 sources (legacy,VSAM,relational) will be loading into only one target. Whenever I retreive the data(any record) from target, i need to find the details that the record belongs to which source. Thanks in advance..

5 Answers   iGate,


Categories