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 (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 |
Post New Answer View All Answers
Can we join same table in sql?
What is primary key sql?
What is sql character function?
What is an implicit commit?
How many sql statements are used? Define them.
What are the types of index in sql?
How can you load multi line records? : aql loader
Can we change the table name in sql?
Can we enter data in a table in design view?
How do you delete data from a table?
What will you get by the cursor attribute sql%notfound?
What is java sql drivermanager?
How do I view a view in sql?
What is recursive join in sql?
How many types of cursors supported in pl/sql?