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

can we view the access paths created by dbrm ? how ? thx

7113


Comment whether the cursor is closed during commit or not.

1112


What is node in db2?

1051


What is blu acceleration in db2?

1083


What are iseries servers?

1083


How to restart a DB2 program?

1912


What is role in db2?

1116


When do you specify the isolation level?

1040


What is the maximum number of columns in a db2 table?

1292


Define declaration generator (dclgen).

1123


Mention some fields that are a part of sqlca.

1048


What is with ur in db2?

1331


Explain how can you do the explain of a dynamic sql statement?

1130


How can we read records for specific member in CL? AND rpg?

706


What is catalog database in db2?

1172