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

What parameters are used to control the free space in DB2?

642


What is the physical storage length of the data types date, time, and timestamp?

610


What are the prerogatives?

615


What is the difference between drop table and delete table?

554


What is a db2 tablespace?

602






How to find the number of rows in db2 tables?

617


What is bufferpool in db2?

580


What is access path in db2?

564


What is ibm db2 used for?

601


Hi, i would like to start a new carrier in DB2 DBA.Which and what all step should i have to take..?

2688


Cursors can be declared in both working-storage & procedure division, agreed. But is there any difference? If could you please suggest what is the difference

751


How to create db2 table in mainframe?

630


What is a bind card?

681


When the like statement is used?

640


What is dclgen (declaration generator)?

603