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 / abinash_mishra
SELECT a_null + b_null + c_null + d_null
FROM (SELECT COUNT (DECODE (a, NULL, 1, NULL)) a_null,
COUNT (DECODE (b, NULL, 1, NULL)) b_null,
COUNT (DECODE (c, NULL, 1, NULL)) c_null,
COUNT (DECODE (d, NULL, 1, NULL)) d_null
FROM t_null);
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
what is the difference between a having clause and a where clause? : Sql dba
how to calculate the difference between two dates? : Sql dba
what tools available for managing mysql server? : Sql dba
What is the difference between clustered and non-clustered indexes?
What is the advantage of index in sql?
Can we use ddl commands in pl sql?
What is a composite primary key?
what is the difference between delete and truncate statement in sql? : Sql dba
what is a trigger? : Sql dba
what is a unique key ? : Sql dba
What are the types of triggers in sql?
Is pl sql a programming language?
what is bcp? When does it used? : Sql dba
Which column in the user.triggers data dictionary view shows that the trigger is a pl/sql trigger?
Define select, insert, create, delete, update, drop keywords