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

NULL

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In an sql table that is embedded, what is the procedure to retrieve rows that are part of a db2 table?

644


What are sqlcodes –803,-805, -811, -818,-904,-911,-913,-101, +100?

712


Comment whether dclgen is mandatorily used. If not, then what is the point of using it?

614


Explain dclgen.

722


How does a cursor work?

556






Explain correlated sub-queries.

589


What is ibm db2 database?

538


What is explain plan in db2?

588


What type of database is db2?

523


What are the different types of base tables?

585


What is the purpose of rollback and commit?

595


What is dbrm? When it will be created?

598


What does sqlcabc has?

631


What do you mean by storage group (stogroup)?

583


What do you mean by rollback?

572