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 / pankaj

ans is a) ZERO

the anser is ZERO because there is no record in the table
they can shows the zero value present in the table


0 record is selected

message is disply

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which are the db2 tools to protect integrity of the database?

680


What is the purpose of using commit?

609


Who uses db2?

567


What are db2 tables?

639


Explain db2.

605






How do you stop a db2 database in linux?

560


What is reorg and runstats in db2?

683


Explain packages.

653


On which levels locks can be applied?

650


What is the difference between db2 and oracle?

665


What is database manager in db2?

543


Explain about rct in db2?

630


How is deadlock resolved?

642


What is the picture clause of null indicator variable?

683


What is null value in db2?

556