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?
Answers were Sorted based on User's Feedback
Answer / virender
SELECT(*) Will return 10 and SELECT (distinct dept) will
return 8.
Is This Answer Correct ? | 7 Yes | 2 No |
Answer / 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 |
Answer / abhilash
SELECT(*) Will return 10 and SELECT (distinct dept) will
return 8.
Is This Answer Correct ? | 0 Yes | 0 No |
Explain about open switch business continuity software?
wht r the requirements for writing a cobol-db2 pgm ?
In which column of which DB2 catalog would you find the length of the rows for all tables?
Hi. I am currently working as a application developer. I would like to persue a DB2 certification exam. Can anybody please provide me the details about this exam like Syllabus, Cost and how to take the certification?
Can we install 2 different versions of Db2 on same mainframe?
What is query for your birthday date should be in hours,minute and seconds format?
Plan is an executable form of sql statements,But what exactly resides inside a Plan. what are the details inside Plan.
What is -904 sql code? How to resolve it?
What is nvl in db2?
Name some fields from SQLCA
What are the Isolation levels possible ?
How to get the ddl of a table in db2?