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

wirte a query to remove null? following table are

col1 col2 col3
dinesh null null
null suresh null
null null prakesh
i want the output like

col1 col2 col3
dinesh suresh prkaesh

Answer Posted / apsar

select distinct((select col1 from z1 where no is not null))col1,(select col2 from z1 where sal is not null)col2,select col3 from z1 where col is not null) from z1
Hint:z1 is Table Name

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When is the explicit cursor used ?

1088


why does the selected column have to be in the group by clause or part of an aggregate function? : Sql dba

1160


What is a loop in sql?

1033


What do you understand by exception handling in pl/sql?

1086


What is denormalization in a database?

1105


what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql

1003


What is synonyms?

1118


Can a varchar be a primary key?

1045


Explain what is dbms?

1118


discuss about myisam key cache. : Sql dba

1067


How to write html code in pl sql?

1157


What is the starting oracle error number? What is meant by forward declaration in functions?

1040


What is informix sql?

1027


Why trigger is used in sql?

1015


What is posting?

1083