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

SELECT(*) Will return 10 and SELECT (distinct dept) will
return 8.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to restart a DB2 program?

1364


What is database manager in db2?

551


List out the buffer pools in db2

630


What do you mean by commit and rollback?

594


What os does db2 run on?

572






What is db2 plan table?

622


What is the difference between oracle and db2?

587


How do you find the maximum value in a column in db2?

650


How to check table size in db2 sap?

580


Following a db2 update statement, what is the quickest way to compute the total number of updated rows?

624


what is utility for parm lib

1878


Explain about rct in db2?

640


What is dclgen in db2?

678


Which isolation level provides maximum concurrency?

666


What is host variable in db2 cobol?

604