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's The Percentage Free Space ?

958


What is schema in db2?

768


What is universal database?

822


What are host variables in db2?

798


before altering a table is it necessary to lock ? if lock what is it ? how to do ? ifi want to lock a table what is that command ?

1907


Discuss about db2 bind?

857


What type of database is db2?

707


What is a db2 tablespace?

774


What is multi row fetch in db2?

765


How many databases can be created inside an instance in db2 ?

805


If anyone has IBM Certification Dumps pls forward to me & also let me know what are the Certification Codes that are available in DB2

1786


How do you select a row using indexes in db2?

837


How many databases are there?

767


What are bind parameters in db2?

787


What is the max length of sqlca?

958