I am hvaing SOURCE as first line: 1000,null,null,null
second line as:null,2000,null,null 3rd line
as :null,null,3000,null and final line as:
null,null,null,4000 ............................Now i want
the OUTPUT as 1000,2000,3000,4000 For more clarification i
want to elimate nulls and want in a single line. Please
help me out

Answers were Sorted based on User's Feedback



I am hvaing SOURCE as first line: 1000,null,null,null second line as:null,2000,null,null 3rd li..

Answer / durgaprasad

select no,max(col1),max(col2),max(col3),max(col4) from
tablename group by no;

Is This Answer Correct ?    7 Yes 0 No

I am hvaing SOURCE as first line: 1000,null,null,null second line as:null,2000,null,null 3rd li..

Answer / srinivas

Just load the flat file.
(1000,null,null,null
null,2000,null,null
null,null,,3000,null
null,null,null,4000)
Go with Aggregate Trans formation with
MAX(field1)
MAX(field2),,,, .

Pls let me know if any corrections srinu.srinuvas@gmail.com

Is This Answer Correct ?    5 Yes 2 No

Post New Answer

More Informatica Interview Questions

how can import the data from the flat files?

2 Answers  


hOW CAN WE DELETE A RECORD OR TRUNCATE IN TARGET TABLE USING SQL T/R ?

4 Answers  


What is dimensional table?

0 Answers  


which T/r we can use it mapping parmeter and mapping variable? and which one is reusable for any mapping mapping parmeter or mapping varibale?

3 Answers   Wipro,


How to generate the HTML output using Informatica.

3 Answers   Wipro,






what are the Methods For Creating Reusable Transformations?

0 Answers   Informatica,


How do you change a non-reusable transformation to reusable transformation?

0 Answers  


If a session fails after loading of 10,000 records in to the target.How can you load the records from 10001?

5 Answers   TCS,


Why update strategy and union transformations are active?

0 Answers  


By using Transformation i need top most 5 employee salary from each deptwise? Deptno 10,20,30? which transformation we need to use?

8 Answers  


can we use mapplet as starting n ending object in mapping

2 Answers   TCS,


Can anyone give some input on "Additional Concurrent Pipelines for Lookup Cache Creation" ? I know that this property is used to build caches in a mapping concurently. But which values should I set into this ( i.e. 1 or 2 or 3 or something else ) for concurrent cache building ?

1 Answers   Wipro,


Categories