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

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

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List out the data types available.

704


How do you pull up a query which was previously saved in qmf?

674


What is null indicator in cobol db2?

585


Mention some fields that are a part of sqlca.

603


How many databases are there?

592






Are views updateable?

645


What are db2 tables?

647


What is image copy in db2?

572


Explain dclgen.

724


define clustering index.

617


How does db2 sample database connect?

570


What type of database is db2?

523


What is difference between isnull and coalesce?

620


What is collection in db2 bind?

577


What is data manager?

610