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 meant by temporal data?

971


What is the difference between functions, procedures, and packages in pl/sql?

1055


If the application is running very slow? At what points you need to go about the database in order to improve the performance?

1002


What is the difference between in and between in sql?

1065


What is the file extension for sql database?

1006


What is time based sql injection?

963


Can I create table without primary key?

1002


What is a recursive join sql?

1077


Can we use pl sql in mysql?

1016


What steps server process has to take to execute an update statement?

977


How would you convert date into julian date format?

1006


What is sql*loader and what is it used for?

1155


Is t sql a programming language?

1070


Which are the different character-manipulation functions in sql?

1068


what are the non-standard sql commands supported by 'mysql'? : Sql dba

1122