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
What r the comman abends in db2, jcl and cobol???????
What is the advantage in De-normalizing tables in DB2?
List some fields from sqlca?
What is phantom read in db2?
How to find the number of rows in a db2 table?
How connect db2 database to datastage?
What is the role of the data page in the db2 database?
Give a brief description of db2 isolation levels?
What is db2? Explain.
Can you use max on a char column?
List out the buffer pools in db2
What are sqlcodes –803,-805, -811, -818,-904,-911,-913,-101, +100?
What is the picture clause of null indicator variable?
Can we update view in db2?
What is table space in db2?