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
I HAVE 500 ROW TO UPDATE I WOULD LIKE TO USE ROLLBACK ALONG WITH COMMIT.WHAT IS THE SYNTAX TO CODE COMMIT AND ROLLBACK FOR EVERY 100 ROWS.AND HOW THE CURSOR ROLLBACK TO THE LAST COMMITTING POINT.
What is the function of logging in the db2 database?
What is db2? Explain.
What is ibm db2 connect?
What is an instance database?
Why do we need reorg in db2?
Give a brief description of db2 isolation levels?
Mention the definition of cobol in varchar field.
How does a cursor work?
What is the maximum No of rows per page?
What is cobol db2?
Where can you declare a cursor in a cobol-db2 program?
Which component is responsible for processing sql statements and selecting access paths?
What is database alias db2?
What is check constraint in db2?