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 / gaurav

select (count(decode(A,null,1)) + count(decode (B,null,1)) + count(decode(C,null,1) + count(decode(D,null,1))) null_count
from T

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are schema-level triggers?

759


If the application is running very slow? At what points you need to go about the database in order to improve the performance?

757


- Types of triggers - View - Dcl - Procedures, packages, functions - Metasolve - Can use Dcl in triggers - package case study - Cursor and its types - triggers schedule - Wrap - Why we are using fetch and for in cursor. difference?

1581


Is left join same as join?

729


Explain table and field in sql?

783






How to install oracle sql developer?

774


Are stored procedures faster than dynamic sql?

739


How bulk collect improves performance?

742


Explain the select statement in sql?

825


Can ddl statements be used in pl/sql?

795


Explain the order of sql statement execution?

806


Why truncate is used in sql?

720


What are stored procedures in mysql?

765


What is the process of debugging?

741


Explain select statements in sql?

759