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 / kishore vakiti
select sum(decode(a,null,1))+
sum(decode(b,null,1))+
sum(decode(c,null,1))+
sum(decode(d,null,1)) tot_nulls from <TAB-NAME>;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how to decrement dates by 1 in mysql? : Sql dba
What is information schema in sql?
Can we use insert statement in function?
What is substitution variable?
What is data type in sql?
How do I filter in sql profiler?
Explain how can you save or place your msg in a table?
how to calculate the difference between two dates? : Sql dba
What is sql deadlock?
What are the different ways to optimize a sql query?
What is scalar function in sql?
Is sql a backend?
How to select 10 records from a table?
Define tables and fields in a database
What does an inner join do?