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 meant by union and union all?
What is netezza database?
What is declare cursor?
What is database alias db2?
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 ?
What is catalog database in db2?
When a COBOL-DB2 program in PRODUCTION is updating main tables and gone for long run, what have to do?
What is the physical storage length of timestamp data type?
What is the use of db2 optimizer?
What is the difference between cursor stability and repeatable read isolation levels?
What is the maximum length of sqlca?
What is a cursor in programming?
What is db2 and what is the use of db2 optimizer?
How and when does the db2 enforces the unique key?
What language is db2 written in?