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 are the difference between clustered and a non-clustered index? : Sql dba
how can we repair a mysql table? : Sql dba
What is the difference between stored procedure and view?
What is the maximum size of sqlite database?
Can we insert data in view?
What are keys in sql?
Lookups are a key component in sql server integration services (ssis). Explain its purpose?
Mention what plvcmt and plvrb does in pl/sql?
Can you do multiple joins in sql?
What is a heap in sql?
Why do we create views in sql?
What is function and procedure?
what is try_catch block in procedure
What is the least restrictive isolation level? : Transact sql
How many types of indexes are there in sql?