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


Please Help Members By Posting Answers For Below Questions

What is the usage of open cursor command?

608


What does db2 stand for?

607


Can we delete records from view?

570


How to check sequence on a table in db2?

609


Highlight all the advantages that are attached to a package.

636






what is the sqlcode -501

11332


What is the default page size of buffer pools?

655


How to test SQL -911 error while developing COB-DB2 program

6730


What is the syntax for FETCH in DB2 ?

682


What is db2 and what is the use of db2 optimizer?

660


What is database manager in db2?

558


What is the latest version of ibm db2?

750


Are view updateable?

634


Explain dclgen.

731


What is the physical storage length of date data type?

738