i have table T!.
A B C D
NULL 1 2 3
4 NULL 5 6
7 8 NULL 9
10 11 12 NULL.
I WANT COUNT OF NULL VALUES IN TABLE. WRITE A QUERY.
Answer Posted / kavitha neditunta
select
count(decode(val,null,1)) all_null_val
FROM
(select * from t1) UNPIVOT INCLUDE NULLS ( VAL for(
all_null_val) in ( a as 'a', b as 'b', c as 'c', d as 'd') )
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between Union and Union all. Which is faster.
what is clause? : Sql dba
What is the difference between a procedure and a function?
Can a trigger call a stored procedure?
Why is a trigger used?
what are date and time data types? : Sql dba
What is t sql in sql server?
How do I count duplicates in sql?
How to run sql statements with oracle sql developer?
what are string data types? : Sql dba
Explain the structure of pl/sql in brief.
What is the difference between a primary key and a clustered index?
Why indexing is needed?
Are sql connections encrypted?
What is the purpose of my sql?