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
How to take backup of table in db2?
How to execute stored procedure in db2 command editor?
When a COBOL-DB2 program in PRODUCTION is updating main tables and gone for long run, what have to do?
What are packages in db2?
What is meant by dclgen?
What is the default page size of buffer pools?
When the like statement is used?
what is utility for parm lib
What are catalog tables in db2?
What is cloudant database?
What is ibm db2 database?
How do you stop a db2 database in linux?
What types of tables are there in the db2 database?
For a db2 column that is being defined as decimal (11, 2), discuss the cobol picture clause.
Why do we use cursor?