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 / chiranjib
SELECT SUM( CASE WHEN A IS NULL THEN 1
ELSE
CASE WHEN B IS NULL THEN 1
ELSE
CASE WHEN C IS NULL THEN 1
ELSE
CASE WHEN D IS NULL THEN 1
ELSE
0
END
END
END
END ) Tot_Null
FROM T
/
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are sql data types?
Show code of a cursor for loop.
What are stored procedures in mysql?
What is the use of procedures?
What is database migration?
What is trigger point?
Can a primary key be a foreign key?
Is postgresql a nosql database?
how would you enter characters as hex numbers? : Sql dba
What are string functions in sql?
How do I find duplicates in the same column?
How do I view tables in mysql?
What is Collation Sensitivity ? What are the various type ?
How to pronounce postgresql?
What is bulk compiling in pl/sql.?