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

Is the primary key a clustered index?

611


What is the syntax for creating a table in the db2 database?

628


what is the responsibility of the construction superintendent

1664


What type of database is db2?

523


What is isolation level in db2?

577






What are the contents of a dclmgen?

628


What is bind in db2?

608


What are db2 objects?

641


What is the purpose of rollback and commit?

595


What is meant by dclgen?

618


How do I optimize a query in db2?

622


How do you select a row using indexes in db2?

647


What is the syntax for seeing the columns and data types of a table in the db2 database?

578


What is dclgen in db2?

678


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

601