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 / ramesh

select a1+b1+c1+d1 from
(select count(case when a='null' then 1 end) a1,
count(case when b='null' then 1 end) b1,
count( case when c='null' then 1 end) c1,
count(case when d='null' then 1 end) d1 from t1)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is relationship? How many types of relationship are there?

1070


Is it possible to link two groups inside a cross products after the cross products group has been created?

953


Do prepared statements prevent sql injection?

897


Where is sql database stored?

919


Are sql connections encrypted?

955


what are the advantages and disadvantages of views in a database? : Sql dba

994


how to see the create table statement of an existing table? : Sql dba

946


How to write pl sql program in mysql command prompt?

1007


How many commands are there in sql?

971


What are the syntax and use of the coalesce function?

1103


what are the differences between get and post methods in form submitting. Give the case where we can use get and we can use post methods? : Sql dba

1084


Can we rollback delete command?

934


what is oltp (online transaction processing)? : Sql dba

1013


what are date and time intervals? : Sql dba

998


Explain the uses of a database trigger?

982