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 DR strategy for Informatica project?

696


Which development components of informatica have the highest usage?

592


if i hv 6 table as source table but can i make 12 as a dim table and 6 as fact table belongs to that src table.

1759


What is data caches/ index caches?

611


write a query to retrieve the latest records from the table sorted by version(scd)

629






What is primary and backup node?

692


Hi, In source I have records like this No name address 10 manoj mum 10 manoj dilhi 20 kumar usa 20 kumar Tokyo I want records in target like shown below No name addr1 addr2 10 manoj mum dilhi 20 kumar usa Tokyo If it is reverse we can do this by using Normalizer transformation by setting occurance as 2. Somebody will say use denoralization technique. But as of my knowledge I couldn’t find any denormalization technique. Is there any concept like that? I tryid this seriously but I could find any idea to implement this. Can any one please help me ? Advance Thanks

6360


explain one complex mapping with logic? sales project?

6142


What are the restrictions of union transformation?

574


How to load data in informatica ?

565


How do you manage the Parameter files while migrating your data from one environment to another environment?

537


What is meant by incremental aggregation?

578


Whats the difference between informatica powercenter server, repositoryserver and repository?

668


Clarify the utilization of aggregator cache record?

575


Differentiate between joiner and lookup transformation?

608