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 join? : Sql dba
What is a schema sql?
Suppose a student column has two columns, name and marks. How to get name and marks of the top three students.
What is the difference between an inner join and an outer join?
What is the best free sql database?
What is rollback?
How do I save a sql query?
Which column in the user.triggers data dictionary view shows that the trigger is a pl/sql trigger?
how to convert numeric values to character strings? : Sql dba
how to get a list of all tables in a database? : Sql dba
What is rank function in sql?
What is a sql statement?
Can two tables have same primary key?
explain advantages of innodb over myisam. : Sql dba
How can we implement rollback or commit statement in a trigger?