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 / mani
SELECT A+B+C+D FROM
( select
count(decode(A,null,1)) A,
COUNT(DECODE (B,null,1))B,
COUNT(DECODE (C,null,1))C,
COUNT(DECODE(D,null,1)) D
from PRACTICE2);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the use of nvl function?
how to do backup entire database? : Transact sql
what is transaction? : Sql dba
What is sequence in sql?
what are the advantages and disadvantages of cascading style sheets? : Sql dba
Explain the working of foreign key?
How do I order columns in sql?
Explain what is a subquery ?
What is a .db file?
What schema means?
How do I add a primary key to a table?
How do you use a while loop in pl sql?
what is innodb? : Sql dba
What are the different types of sql commands?
Does postgresql run on the cloud?