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

Answers were Sorted based on User's Feedback



wirte a query to remove null? following table are col1 col2 col3 dinesh null null null ..

Answer / kart

select max(col1) col1,max(col2) col2,max(col3) col3
from table;


col1 col2 col3
dinesh suresh prkaesh

Is This Answer Correct ?    11 Yes 4 No

wirte a query to remove null? following table are col1 col2 col3 dinesh null null null ..

Answer / sivanagaraju

SELECT DISTINCT((SELECT COL1 FROM COLL WHERE COL1<>'NULL')),(SELECT COL2 FROM COLL WHERE COL2<>'NULL'),(SELECT COL3 FROM COLL WHERE COL3<>'NULL')
FROM COLL

Is This Answer Correct ?    4 Yes 1 No

wirte a query to remove null? following table are col1 col2 col3 dinesh null null null ..

Answer / sivanagaraju

SELECT C1.COL1,C2.COL2,C3.COL3
FROM COLL C1,(SELECT COL2 FROM COLL WHERE COL2 <>'NULL') C2,
(SELECT COL3 FROM COLL WHERE COL3<>'NULL') C3
WHERE C1.COL1<>'NULL';

Is This Answer Correct ?    2 Yes 1 No

wirte a query to remove null? following table are col1 col2 col3 dinesh null null null ..

Answer / ajitnayak

select distinct col1 from samp
where col1 is not null
union all
select distinct col2 from samp
where col2 is not null

Is This Answer Correct ?    0 Yes 0 No

wirte a query to remove null? following table are col1 col2 col3 dinesh null null null ..

Answer / sivanagaraju

SELECT C1.COL1,C2.COL2,C3.COL3
FROM (SELECT COL1 FROM COLL WHERE COL1 <>'NULL') C1,
(SELECT COL2 FROM COLL WHERE COL2 <>'NULL') C2,
(SELECT COL3 FROM COLL WHERE COL3<>'NULL') C3
WHERE C1.COL1 <>'NULL' AND C2.COL2<>'NULL';

Is This Answer Correct ?    1 Yes 2 No

wirte a query to remove null? following table are col1 col2 col3 dinesh null null null ..

Answer / 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

More SQL PLSQL Interview Questions

What is cartesian join in sql?

0 Answers  


What is the starting oracle error number?

0 Answers  


How many scalar data types are supported in pl/sql?

0 Answers  


What is procedure explain with program?

0 Answers  


How many commands are there in sql?

0 Answers  


What is right join sql?

0 Answers  


How is indexing done in search engines?

0 Answers  


What are the advantages of pl sql over sql?

0 Answers  


how to run 'mysql' commands from a batch file? : Sql dba

0 Answers  


How to remove duplicate rows from a table?.

3 Answers  


using comand prompt how can import table data and table space with example

2 Answers  


What is clustered index in sql?

0 Answers  


Categories