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 / rama krishna reddy

b

if no matching records found then it will return null value

Is This Answer Correct ?    36 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

DB2 can implement a join in three ways using a merge join, a nested join or a hybrid join. Explain the differences?

2278


What is scrollable cursor in db2?

583


How to check sequence on a table in db2?

600


What is runstats and reorg in db2?

798


How does a cursor work?

558






What is bind in db2?

608


How can you count the number of rows from a table tab?

637


What is a collection in db2?

584


Why do we use cursor?

599


What is the connection string to connect to the DB2 Database ?

614


What is db2 instance?

592


What is ibm db2 used for?

601


What is a db2 schema?

764


What is dpf in db2?

666


What is database manager in db2?

551