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 consistency token in db2?
What is db2 instance?
What is the use of reorg in db2?
Is it possible using max on a char column?
What is ibm db2 connect?
What is db2 and what is the use of db2 optimizer?
What is the advantage in De-normalizing tables in DB2?
What is difference between alias and synonym in db2?
Is db2 a database?
What are iseries servers?
Is db2 a mainframe database?
I HAVE 500 ROW TO UPDATE I WOULD LIKE TO USE ROLLBACK ALONG WITH COMMIT.WHAT IS THE SYNTAX TO CODE COMMIT AND ROLLBACK FOR EVERY 100 ROWS.AND HOW THE CURSOR ROLLBACK TO THE LAST COMMITTING POINT.
If I have a view which is a join of two or more tables, can this view be updateable?
What is performance tuning db2?
What type of database is db2?