what will be the output of the below given query, if no
matching records are found : (a.) 0 (b.) null (c.) error
select Avg(salary)
from TableA
where Deptno = 'insurance'
Answer Posted / swapnil
It depends up on the which database we are using. I m using
PostgreSQL it is in open source.It returns 0 value.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is the difference between oracle and db2?
What is db2 connect?
What is check constraint. Explain with example.
What is rct?
What is load replace in db2?
Before you give the explain statement, what are the prerogatives?
What are the bind parameters ibm db2?
What is runstats db2?
What is netezza database?
What is dpf in db2?
I understand Join always perform better than subqueries. Then what is the advantage/use of Subqueries/correlated subqueries etc.,in DB2 programming.Please explain.
What is role in db2?
For a db2 column that is being defined as decimal (11, 2), discuss the cobol picture clause.
What is the usage of open cursor command?
What are db2 objects?