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 log shipping? : Sql dba
what is a join? : Sql dba
what is an index? : Sql dba
Does sap use sql?
What is relationship? How many types of relationship are there?
Which is faster joins or subqueries?
Why functions are used in sql?
Can triggers stop a dml statement from executing on a table?
How do I add a database to sql?
what are the different index configurations a table can have? : Sql dba
What is foreign key and example?
What does the hierarchical profiler does?
What is database white box testing and black box testing?
How do you remove duplicate records from a table?
what is the difference between primary key and unique key? : Sql dba