Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / kavitha neditunta

select
count(decode(val,null,1)) all_null_val
FROM
(select * from t1) UNPIVOT INCLUDE NULLS ( VAL for(
all_null_val) in ( a as 'a', b as 'b', c as 'c', d as 'd') )

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why are aggregate functions called so?

945


how to shutdown mysql server? : Sql dba

1094


Can a table have no primary key?

1055


What is a primary key example?

956


Explain the purpose of %type and %rowtype data types with the example?

987


what are the differences between char and nchar? : Sql dba

1113


How do you delete data from a table?

1025


The in operator may be used if you know the exact value you want to return for at least one of the columns.

1126


Which is better varchar or nvarchar?

994


What are the different types of dbmss?

1013


what is rdbms? : Sql dba

1012


What is indexing in sql and its types?

1078


What is left join example?

944


How can you view the errors encountered in a trigger?

958


Is postgresql a server?

1044