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 / ash
select sum(case when A is null then 1 when B is null then 1
when C is null then 1 when D is null then 1 else 0 end)as
count_null from table T
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
how to convert dates to character strings? : Sql dba
Which one is better subquery or joins?
What is record data type?
How do you copy a table in sql?
Why is sql important?
How to create your own reports in sql developer?
What are types of indexes in sql?
what is the difference between ereg_replace() and eregi_replace()? : Sql dba
write an sql query to find names of employee start with 'a'? : Sql dba
How can we avoid duplicating records in a query?
What is a pl/sql block?
Which column of the user triggers data dictionary view displays the database event that will fire the trigger?
How do I start sql profiler?
Is natural join and inner join same?
How many times can we commit in a loop?