write a query to remove null value follwing table?
col1 col2 col3
dinesh null null
null suresh null
null null prakesh

i want the output

col1 col2 col3
dinesh suresh prakesh

Answer Posted / sasibushan

This will work

SELECT Max(CASE WHEN col1 IS NOT NULL THEN col1 END) AS "col1",
Max(CASE WHEN col2 IS NOT NULL THEN col2 END) AS "col2",
Max(CASE WHEN col3 IS NOT NULL THEN col3 END) AS "col3"
FROM Table_name

Convert this logic to Informatica...

Sasi.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a snowflake schema?

575


Why union transformation is an active transformation?

665


In What Situations we can use MappingParameters ,Mapping Variables AND Session Parameters in REAL TIME.

1545


What is powercenter on grid?

706


What is the fact table?

601






What are the transformations that cannot be placed between the sort origin and the joiner transformation so that we do not lose the input sort order?

801


How to open an older version of an object in the workspace?

629


The question was on time stamp. what is the difference between HH and HH24 when to use when.

1569


What are the various test procedures used to check whether the data is loaded in the backend, performance of the mapping, and quality of the data loaded in informatica?

608


What is an expression transformation in informatica?

534


I have worked on Informatica 7.1.1. I want to know the answer for the below question. Target is not created initially.Then how to take the DDL script from the source and run the Mapping by creating the Target dynamically?Is it possible by SQL Transformation?

1476


While migrating the data from one environment to another environment how would you manage the connections?

636


Is it possible to create multiple domains on a single Informatica server?

762


What is lookup transformation?

612


Explain the aggregator transformation?

642