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
Where do you specify them?
What is db2 plan table?
What are packages in db2?
Define db2 and its databases?
What is db2 catalog database?
What is explain plan in db2?
How do you pull up a query which was previously saved in qmf?
Is db2 a database?
DB2 can implement a join in three ways using a merge join, a nested join or a hybrid join. Explain the differences?
How do you stop a db2 database in linux?
What is bind package and plan in db2?
What is db2?
Why cursor is used in db2?
What is the role of schema in the db2 database?
what is db2 restart?