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


Please Help Members By Posting Answers For Below Questions

what are the types of subquery? : Sql dba

591


Does a user_objects view have an entry for a trigger?

570


Difference between truncate, delete and drop commands?

559


How does index help in query performance?

565


What is rank function in sql?

534






What is an exception in PL/SQL? What are the two types of exceptions?

627


What are the operators used in select statements?

578


What is the purpose of primary key?

533


How exception is different from error?

544


Can a foreign key have a different name?

514


what's the difference between a primary key and a unique key? : Sql dba

508


Explain the advantages and disadvantages of stored procedure?

650


How we can create a table in pl/sql block. Insert records into it? Is it possible by some procedure or function? Please give example?

595


What is before and after trigger?

518


how to use myisamchk to check or repair myisam tables? : Sql dba

509