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
Explian rowid, rownum?
How do I start sql profiler?
What is a natural join?
When a dml statement is executed, in which cursor attributes, the outcome of the statement is saved?
Define union, minus, union all, intersect ?
How do I save a stored procedure?
What is sql procedures and functions?
How would you reference column values before and after you have inserted and deleted triggers?
Are views faster than queries?
what is primary key? : Sql dba
explain commit and rollback in mysql : sql dba
What is not null in sql?
Is sql database free?
What is the meaning of disabling a trigger?
what are the features and advantages of object-oriented programming? : Sql dba