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
What is db2?
How can you quickly find out the # of rows updated after an update statement?
What is node in db2?
Explain correlated sub-queries.
Is the primary key a clustered index?
What is the default page size of buffer pools?
How to find the maximum value in a column in the db2 database?
Define db2.
What is table space in db2?
Give the name of some fields form sqlca.
If the cursor is kept open followed the issuing of commit, what is the procedure to leave the cursor that way?
Explain various types of locks in db2?
Suppose pgm A calling Pgm B .Pgm B has some Db2 program. at the time of compilation should plan and package will be created for both A and B or only B? What is the concept?
What is sqlca?
What is bind in db2?