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 a storage group (stogroup)?
What is with ur in db2?
What is the maximum No of rows per page?
What is rebind in db2?
List out the buffer pools in db2
by using cursors , we can access particular records from the table based on some condition, i want to delete those selected records, how can we write a query for this in the program?
What is copy pending and check pending in db2?
Explain about cursor stability?
What is schema in db2?
What is deadlock in db2?
What are iseries servers?
What happens in bind step in a db2 program?
How does a cursor work?
How do I copy a table in db2?
Why do we need reorg in db2?