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 is full form of rtm?
what tools available for managing mysql server? : Sql dba
How to run sql statements with oracle sql developer?
Why do we use view in sql?
how to rename an existing column in a table? : Sql dba
What are pl/sql cursor exceptions?
What is pl/sql language case sensitive?
What is a sql driver?
How do you concatenate in sql?
What is trigger in sql and its types?
What is server name sql?
How do I run a query in pl sql developer?
How to change the order of columns in Oracle SQL Plus ?
How do I order by ascending in sql?
What is the use of count (*) in sql?