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 / madhuri tungal
select count(*) returns 10 --- this is right. But,
select count(distinct dept) returns 7. Because null values
are not considered as distinct.
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
i tried to copy some records from microsoft excel to as-400 physical file through "Bosanova" emulation. Out of 14000 records only 12000 records copies and subsequently programe started to hang. Then, i closed the program forcefully. I did' under stand the problem. Also when i try to compile the physical file it is showing as "The file in use". How to overcome this problem?
List out the three types of page locks that can be held.
Mention the definition of cobol in varchar field.
Can we update view in db2?
Define check constraint.
When reorg is used?
What is phantom read in db2?
What is a db2 schema?
What is the latest version of ibm db2?
What is plan in cobol db2?
How to compare data between two tables in db2?
Explain correlated sub-queries.
What is netezza database?
What is the use of db2 optimizer?
What is the difference between spufi and qmf?