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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between row level and statement level trigger?

729


What are local and global Indexes and where they are useful.

1144


what are the disadvantages of mysql? : Sql dba

765


What is a temporal table?

666


how can we submit a form without a submit button? : Sql dba

731


Is sql similar to python?

720


Can we use insert statement in function?

740


What is the difference between the implicit and explicit cursors?

746


Why do we use procedures?

698


Why is partition used in sql?

788


What is the difference between the conventional and direct path loads? : aql loader

919


what happens if null values are involved in expressions? : Sql dba

739


How does cross join work in sql?

709


What is pl sql block in dbms?

710


What is a system versioned table?

706