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 / shailendra
It will be error, as we are using where with AVG function....we should use having
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can the duplicate values be eliminated from db2 select?
If I have a view which is a join of two or more tables, can this view be updateable?
What is runstats and reorg in db2?
What is a trigger in the db2 database?
Explain packages.
What is the role of the data page in the db2 database?
What is isolation level in db2?
What are concurrency issues?
How can tablespace be moved to another dasd volume that is allocated for that tablespace?
Discuss about db2 bind?
What is table space in db2?
What is dbrm in db2 database?
What parameters are used to control the free space in DB2?
What is the advantage in De-normalizing tables in DB2?
What is coalesce in db2?