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
How many sectors are in a partition?
What is count * in sql?
How would you convert date into julian date format?
What is join view in sql?
Why use triggers in sql?
What is sql data?
Is sql similar to python?
what does the t-sql command ident_incr does? : Transact sql
How can I get the number of records affected by a stored procedure?
What are reports usually used for?
what is subquery? : Sql dba
what is sp_pkeys? : Transact sql
what is text? : Sql dba
Can we create table in function?
Enlist some predefined exceptions?