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 are packages in db2?
When do you specify the isolation level?
What is db2? Explain.
What is a plan and package in db2?
What is a Foreign Key?
What is difference between isnull and coalesce?
How to retrieve rows from a db2 table in embedded sql?
What are the contents of a dclmgen?
Is db2 a mainframe database?
what are bind concepts in db2 cobol?
Why select is not preferred in embedded sql programs?
What is the maximum size of a char data type in db2?
What is db2 and what is the use of db2 optimizer?
Which component is used to execute the sql statements?
Is it possible to create an Instance in DB2 using DB2 Control Center ?