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
What are the different sql commands?
What is pl sql block structure?
tell us something about heap tables. : Sql dba
What is a join query?
What is the starting oracle error number?
what is 'mysqlcheck'? : Sql dba
Can we perform dml on view?
list out some tools through which we can draw e-r diagrams for mysql. : Sql dba
Explain the methods used to protect source code of pl/sql.
Are null values same as that of zero or a blank space?
what is 'trigger' in sql? : Sql dba
What are local and global Indexes and where they are useful.
Can we join tables without foreign key?
Define overloaded procedure?
What is sql clause?