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 / mani
SELECT A+B+C+D FROM
( select
count(decode(A,null,1)) A,
COUNT(DECODE (B,null,1))B,
COUNT(DECODE (C,null,1))C,
COUNT(DECODE(D,null,1)) D
from PRACTICE2);
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is sql port 1433 encrypted?
What is a parameter query?
Mention what does plv msg allows you to do?
How can I see all tables in sql?
What is a trigger word?
describe transaction-safe table types in mysql : sql dba
Can you have more than one key in a database?
how would you enter characters as hex numbers? : Sql dba
what is oltp (online transaction processing)? : Sql dba
What are joins in sql?
What is string data type in sql?
What is the use of %rowtype?
Explain what is a subquery ?
how can we transpose a table using sql (changing rows to column or vice-versa) ? : Sql dba
How much does sqlite cost?