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
Explain db2.
What is sqlca?
what is a corelated subquerry?
What is the difference between dbm cfg and db cfg file in db2 ?
How to find primary key of a table in db2?
What do you mean by cursor?
Which component is responsible for db2 startup and shutdown?
What is the physical storage length of the data types date, time, and timestamp?
How do I add a column to an existing table in db2?
How to test SQL -911 error while developing COB-DB2 program
List some fields from sqlca?
How connect db2 database to datastage?
What are host variables in db2?
What is cursor with hold option in db2?
What are the bind parameters ibm db2?