Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Hi,
My understanding is different so it can be a or b. Assume
that there are 10 records and this column can have null
values. If 9 records have null and one record has vale as
zero then the answer would be zero and if all of them have
null then the answer would be null. If no rows satifies the
criteria then it would be null.

Is This Answer Correct ?    5 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the role of schema in the db2 database?

1358


Define sqlca.

1166


How do I delete a column in db2?

1153


How to compare data between two tables in db2?

1137


What is node in db2?

1101


Explain the function done by data manager?

1329


What db2 400?

1251


Explain about rct in db2?

1161


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

1221


Which isolation level provides maximum concurrency?

1203


What are the bind parameters ibm db2?

1099


List out the buffer pools in db2

1128


How will you return the number of records in table?

986


What is the latest version of ibm db2?

1335


What is dclgen (declaration generator)?

1113