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

What is data control language?

985


The select into statement is most often used to create backup copies of tables or for archiving records?

1062


Explain the difference between sql and mysql.

1058


How can we make an if statement within a select statement?

1006


What does data normalization mean?

949


How do I restart sql?

963


What are operators available in sql?

1038


What is out parameter used for eventhough return statement can also be used in pl/sql?

1068


Why do we use sql constraints? Which constraints we can use while creating database in sql?

1037


What are different sql data types?

1037


Does truncate table reset auto increment?

989


How is debugging done?

967


Why triggers are used?

987


What is update query?

972


How do sql databases work?

990