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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we create a trigger on view?

676


What is normalisation in sql?

788


what is a table in a database ? : Sql dba

761


Is pl sql and postgresql same?

782


How can you fetch first 5 characters of the string?

718


What is difference between pls_integer and integer?

717


How to find 3rd highest salary of an employee from the employee table in sql?

804


What is indexes?

762


What is the difference between nested table and varray?

699


What is sql used for?

860


How does one load ebcdic data? : aql loader

842


What does an inner join do?

796


What is procedure and function in sql?

756


What is the difference between clustered and non-clustered index in sql?

737


discuss about myisam key cache. : Sql dba

773