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

select a1+b1+c1+d1 from
(select count(case when a='null' then 1 end) a1,
count(case when b='null' then 1 end) b1,
count( case when c='null' then 1 end) c1,
count(case when d='null' then 1 end) d1 from t1)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is left join same as inner join?

723


Explain what is an index?

757


What is procedure and function?

680


Which one is faster ienumerable or iqueryable?

655


what are the different tables present in mysql, which type of table is generated when we are creating a table in the following syntax: create table employee (eno int(2),ename varchar(10)) ? : Sql dba

807






Write a query to find the names of users that begin with "um" in sql?

703


What are pl/sql packages?

760


What is the difference between stored procedure and view?

736


what are set operators in sql? : Sql dba

726


How to use sql statements in pl/sql?

798


How many times can we commit in a loop?

740


What is full form of rtm?

721


What is error ora-12154: tns:could not resolve the connect identifier specified?

824


Does varchar need length?

710


what is union? : Sql dba

740