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 sql key?
Explain the uses of a database trigger?
How to run pl sql program in mysql?
Which sql statement is used to return only different values?
What is an exception in pl/sql?
Do we need to create index on primary key?
what is a record in a database ? : Sql dba
What is the location of pre_defined_functions.
What is sap sql anywhere?
Which sql statement is used to delete data from a database?
What are the parts of a sql statement?
Mention what is the plv (pl/vision) package offers?
How we can update the view?
What is a null value?
How do you write a complex sql query?