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

It depends up on the which database we are using. I m using
PostgreSQL it is in open source.It returns 0 value.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the maximum size of varchar data type in db2?

649


What is access path in db2?

568


How can you quickly find out the # of rows updated after an update statement?

640


What type of database is db2?

531


Where do you specify them?

688






What is bind and rebind in db2?

656


Comment whether the cursor is closed during commit or not.

682


Can you use max on a char column?

644


What is db2?

749


What is ibm db2 used for?

609


what is the responsibility of the construction superintendent

1672


How do I add a column to an existing table in db2?

600


How and when does the db2 enforces the unique key?

620


What is collection in db2 bind?

585


Name the various locking levels available?

640