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
What is case function?
How can you save or place your msg in a table?
how can we encrypt and decrypt a data present in a mysql table using mysql? : Sql dba
Explain what is a field in a database and record in a database?
How do I view a sql trace file?
What is program debugging?
When sql appeared?
What are the types of queries in sql?
Does sql*plus have a pl/sql engine?
What has stored procedures in sql?
What is file based approach?
How can we make an if statement within a select statement?
Does db2 use sql?
How do I delete a trigger?
what is timestamp in mysql? : Sql dba