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
Can delete statement be rollbacked?
What is an inner join sql?
Is time a data type in sql?
What is trigger in sql? Explain
what is subquery? : Sql dba
what is cross join? : Sql dba
When is a declare statement required?
how to select unique records from a table? : Sql dba
What is using in sql?
What are the types of join and explain each?
how is myisam table stored? : Sql dba
How many commands are there in sql?
Can a procedure in a package be overloaded?
What is a data definition language?
who introduced sql?