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 is a table?
Which type of cursor is used to execute the dml statement?
How do I order by ascending in sql?
What jobs use sql?
What are the conditions an underlying table must satisfy before a cursor can be used by a positioned update or delete statement? : Transact sql
What is difference between ms sql and mysql?
What is an alias command?
What is error ora-12154: tns:could not resolve the connect identifier specified?
list out some tools through which we can draw e-r diagrams for mysql. : Sql dba
what is the stuff function and how does it differ from the replace function? : Sql dba
What is trigger explain it?
What is update query?
what is denormalization. : Sql dba
Does sql backup shrink transaction log?
what are the join types in tsql? : Transact sql