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 is optimistic concurrency control? : Transact sql

553


What is time based sql injection?

492


How do you get column names only for a table (sql server)?

675


When is the update_statistics command used?

576


What does plv msg allows you to do?

687






What is Collation Sensitivity ? What are the various type ?

503


Is there a 64 bit version of ssms?

525


What is output spooling in sql*plus?

562


What can sql server reporting services do?

586


What are the different types of tables in sql?

493


What is a temporal table?

502


what are wild cards used in database for pattern matching ? : Sql dba

557


How do you write an inner join query?

521


What is string data type in sql?

540


What is the order of sql select?

580