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
Is there a pl/sql pragma similar to deterministic, but for the scope of one single sql select?
What kind of join is join?
How many types of triggers exist in pl/sql?
How do you explain an index?
what is a composite key ? : Sql dba
what is the difference between mysql_fetch_array and mysql_fetch_object? : Sql dba
What are the two different parts of the pl/sql packages?
what is auto increment? : Sql dba
Which is faster count (*) or count 1?
Can we join tables without foreign key?
What is cascade in sql?
What is recursive stored procedure?
how do you control the max size of a heap table? : Sql dba
i have some prob lem to tell me about my self in interview first round ...
What is a field in a database?