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

24. Display the order number for all orders whose average
item cost is greater than the overall average item cost
across all orders.

Answer Posted / sarath

Small correction to the above answer. Its not MAX, but AVG
Sorry for the mistake

select ORDER_NO,AVG(ITEM_COST) from <TN>
Group by ORDER_NO
having AVG(ITEM_COST) > (Select AVG(AVG(ITEM_COST)) from
<TN> Group by ORDER_NO)

This is to display the Order no whose AVG is > Resultant AVG of All Order's AVG(ITEM _Cost)

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to load data from external tables to regular tables?

1102


Explain what are clusters?

1155


How to generate query output in html format?

1208


What is the data pump import utility?

1074


When do I need to use a semicolon vs a slash in oracle sql?

1141


What are the parameters that we can pass through a stored procedure?

1117


What are the uses of a database trigger?

1036


What is an oracle user account?

1039


Explain the types of exception?

1194


Can we store images in oracle database?

1066


How will you identify oracle database software release?

1055


What do the 9i dbms_standard.sql_txt() and dbms_standard.sql_text() procedures do?

4569


How to drop an existing table in oracle?

1102


Explain rename?

1043


An automatic job running via DBMS_JOB has failedKnowing only that its failed, how do you approach troubleshooting this issue?

2100