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


Please Help Members By Posting Answers For Below Questions

Is schema the same as database?

1053


How do I import data from excel to db2?

1062


Explain in brief how does db2 determine what lock-size to use?

1034


What is the connection string to connect to the DB2 Database ?

1117


What are sqlcodes –803,-805, -811, -818,-904,-911,-913,-101, +100?

1182


have 3 tables table1, table2 and table3 which contains employee information. table1 is master table, table2 contains emp details like emp no and so on, table 3 contains emp salary. so if any emp leave company between 25th - 30th of every month it has to get updated in tables. but it is not getting updated. What is the reason.

1729


Can we delete records from view?

962


How do I add a column in db2?

1043


What is the purpose of using commit?

1090


My sql statement select avg(salary) from emp yields inaccurate results. Why?

1085


How does cobol compile db2 program?

1045


What is innodb buffer pool?

1046


What happens in bind step in a db2 program?

964


List out the data types available.

1147


What is the advantage in De-normalizing tables in DB2?

1165