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 / pankaj
suppose u have table named as emp
emp_id dept_id last_name salary
1 10 N1 10000
2 20 N2 10000
3 N3 12000
4 N4 12000
5 30 N5 15000
NOW IF U WANT TO RETRIEVE THE ROWS WITH ELIMINATING NULL
VALUES.
EX-
SELECT EMP_ID,DEPT_ID,LAST_NAME,SALARY
FROM EMP
WHERE DEPT_ID IS NOT NULL;
SO IN THE OUTPUT NULL VALUES WILL NOT BE RETRIVED MEANS
RECORD FOR EMP_ID 3 AND 4 WILL NOT BE RETRIVED.
REGARDS R
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we create foreign key without primary key?
What are the three forms of normalization?
Can you call pl/sql package functions from within a fast formula?
discuss about myisam key cache. : Sql dba
what are all the different normalizations? : Sql dba
Name the different types of indexes in sql and define them.
What is a join?
What are sql commands?
what is self join and what is the requirement of self join? : Sql dba
What is query optimization in sql?
Where can I learn sql for free?
What are stored procedures used for?
What is coalesce in sql?
How do I count rows in sql?
What is foreign key sql?