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 are types of indexes?

1187


What is cursor with hold option in db2?

1134


What is the picture clause of null indicator variable?

1178


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

1173


How do I import a csv file into db2?

1039


What are the prerogatives?

1127


How to test SQL -911 error while developing COB-DB2 program

7665


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

1137


Is db2 a database?

1027


What is phantom read in db2?

1222


How to find primary key of a table in db2?

1112


What are the bind parameters ibm db2?

1098


What is the difference between plan and package in db2?

1169


Why do we use cursor?

1162


Explain in detail about buffer manager and its functionalities?

1138