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...

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

Explain dynamic target flat file name generation in informatica

1008


What is flashback table ? Advance thanks

1872


what is the hint? how to use it to reduce the query processing in program?

7629


What is the meaning of up gradation of repository?

1896


what is the size of u r source(like file or table)?

2199


How to update or delete the rows in a target, which do not have key fields?

1116


What are different types of transformations available in informatica?

936


Can informatica load heterogeneous targets from heterogeneous sources?

1118


How to improve the performance of a session using sorter transformation?

1092


How can we delete duplicate rows from flat files?

1162


my source is junk data how will u remove that junk data by using unix please any one replay me

3649


How identifying bottlenecks in various components of informatica and resolving them?

1055


How can we remove the duplicates from flat file source?

948


What will happen if the select list columns in the custom override sql query and the output ports order in sq transformation do not match?

915


What are the types of lookup transformation?

1023