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

ANSWER IS B. IT GIVES NULL.

Is This Answer Correct ?    20 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is buffer pool?

613


Which isolation level provides highest data integrity?

599


Explain dclgen.

724


What is the difference between dbm cfg and db cfg file in db2 ?

1006


What is the max length of sqlca?

767






can all users have the privilage to use the sql statement select * (dml)?

642


What is the difference between db2 and oracle?

677


What is runstats utility in db2?

569


What is collection in db2 bind?

577


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

637


When reorg is used?

676


Define check constraint.

644


If I have a view which is a join of two or more tables, can this view be updateable?

694


What is a collection in db2?

584


Explain about dbrm.

609