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
Which column of the user triggers data dictionary view displays the database event that will fire the trigger?
What is blind sql injection?
what is the use of anchoring object? what r the difference between anchoring object & enclosing object? can any one tell me all the details?
What does bitemporal mean?
List different type of expressions with the example.
Why is a primary key important?
Are stored procedures faster than dynamic sql?
What is a Mapplet?
Can we call stored procedure in function?
What is nosql db?
What is sql procedures and functions?
What is the difference between sql and mysql?
What is sql data?
What is the location of pre_defined_functions.
I need a function for a train ticket reservation please answer it thanks in advance