we have tables like
c1 a
c2 b
c3 c
c4 x
c5 y
and i need output like abcx in a single row and abcy in
a single row? how do u do this?

Answers were Sorted based on User's Feedback



we have tables like c1 a c2 b c3 c c4 x c5 y and i need output like abcx in a single r..

Answer / krishnendu guha

I believe c1 c2 c3 are the columns

you can override the source qualifier with the following
query

select c1,c2,c3,c4 from table1
union all
select c1,c2,c3,c5 from table1
this should do..

Is This Answer Correct ?    10 Yes 9 No

we have tables like c1 a c2 b c3 c c4 x c5 y and i need output like abcx in a single r..

Answer / gunjan singhal

select c1+c2+c3+c4 from table1
union all
select c1+c2+c3+c5 from table1

Is This Answer Correct ?    0 Yes 7 No

Post New Answer

More Informatica Interview Questions

Do you find any difficulty while working with flat files as source and target?

0 Answers  


what are the differences between powercenter 8.1 and powercenter 8.5?

2 Answers  


what is the diff b/w union and joiner and lookup?

4 Answers  


If I am having 6 flat files in data. How can you load the data at a time

2 Answers   CSC,


I am using mapping variable, when i am running a session,before it has 10000 records, after completion of session what about value of mapping variable?

1 Answers  






i have a source which relational.I am trying to populate to target flat file with one column for daily date which is sysdate. I want to populate the sysdate coulmn with DD/MM/YYYY format. kindly provide a solution for this..my clear that my target is flat file.

3 Answers  


What is best approach to load 100 different source files (Different structure) to differet target tables ?

2 Answers   IBM, TCS,


what is Partitioning ? where we can use Partition?

2 Answers   IBM, TCS,


When to use normalization transformation other than cobol source?

2 Answers  


How to generate the HTML output using Informatica.

3 Answers   Wipro,


wat transf shud i use to achieve this id sal id sal sum src-1 20 tgt 1 20 40 1 20 1 20 40 2 15 2 15 35 2 20 2 20 35

2 Answers  


Explain the difference between a data warehouse and a data mart?

0 Answers  


Categories