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
What is precompiler in db2?
What is a db2 schema?
Can you use max on a char column?
Which isolation level provides maximum concurrency?
What is the maximum number of columns in a db2 table?
What is db2 connect?
What are the full forms of spufi and dclgen and why are they used?
Explain the contention situations caused by locks?
What is database manager in db2?
Is schema the same as database?
What is the default page size of buffer pools?
How do I copy a table in db2?
What is the syntax for seeing the columns and data types of a table in the db2 database?
What is the maximum size of varchar data type in db2?
What is bufferpool in db2?