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 a delimiter in sas?
How many sql statements are used? Define them.
what is bdb (berkeleydb)? : Sql dba
Can one improve the performance of sql*loader? : aql loader
what are properties of a transaction? : Sql dba
What is dense_rank?
What is mutating sql table?
What is trigger and stored procedure in sql?
What is sqlcommand?
What is date functions?
What are pl/sql packages?
Is coalesce faster than isnull?
What mean sql?
How to assign sql query results to pl sql variables?
what are the non-standard sql commands supported by 'mysql'? : Sql dba