how to eliminate null values in a column i.e
table vlaues
1 2 3
NULL 3 4
1 5 NULL
i want output like this
1 2 3
3 4
1 5
i dnt want to use nvl is null and i dnt want replace the
NULL value with any value i.e nvl(col,o);

Answer Posted / chandra shekhar

Dear Lavanya,
You cannot equate the NULL with the operators like = and !=

NULLs can be equated with "IS NULL" or "IS NOT NULL"
(Double quotes " not included)

In u r query if u say IS NOT NULL, then also as per question asked in the very beginning it will not suffice.

As there are multiple columns with multiple NULLs in all the given columns .

Regards
J

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the various restrictions imposed on view in terms of dml?

516


What are the types of optimization?

518


What is sql basics?

573


Do we need to create index on primary key?

461


What is a constraint? Tell me about its various levels.

634






Can ddl statements be used in pl/sql?

591


Explian rowid, rownum? What are the psoducolumns we have?

562


Can you have more than one trigger on a table?

528


What is the difference between rename and alias?

702


Can we call stored procedure in function?

546


What is exit statement?

539


how to drop an existing table in mysql? : Sql dba

554


what is a composite key ? : Sql dba

593


what is subquery? : Sql dba

564


What is normalization? How many normalization forms are there?

548