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...

If a table has a column "dept" (declared to have nulls) and
there are 10 rows in the table of which 3 have a null value
in the dept column, what will select count(*) and select
count(distinct dept) return?

Answer Posted / madhuri tungal

select count(*) returns 10 --- this is right. But,
select count(distinct dept) returns 7. Because null values
are not considered as distinct.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a db2 tablespace?

1059


What is db2 and what is the use of db2 optimizer?

1052


Which are the db2 tools to protect integrity of the database?

1120


what is a corelated subquerry?

1120


What is deadlock in db2?

1062


Is it possible using max on a char column?

1134


List out the three types of page locks that can be held.

1145


How would you find out the total number of rows in a db2 table?

1047


What is copy pending and check pending in db2?

994


Where can you declare a cursor in a cobol-db2 program?

1067


Mention data types used in db2 ?

1152


How can you find out the # of rows updated after an update statement?

1105


Explain the function done by data manager?

1273


How to execute stored procedures?

1123


Explain about rct.

1083