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
What is a stored procedure in sql with example?
What is multiple columns?
What is procedure explain with example?
What is normalization in sql?
How do I remove sql developer from windows 10?
how to create a test table in your mysql server? : Sql dba
How can we optimize a sql query?
What is the difference between rollback and rollback to statements?
Explain isolation levels. : Transact sql
How do you rank data in sql?
Differences between Oracle 9i and 10g (Probably in terms of SQL and PL/SQL)?
How to find 3rd highest salary of an employee from the employee table in sql?
What is anonymous block in sql?
How do I start sql from command line?
What is the difference between the conventional and direct path loads? : aql loader