Question: Write a query to display the lowest average cost of books within a subject and the highest average cost of books within a subject (

Write a query to display the lowest average cost of books within a subject and the highest average cost of books within a subject (Figure P7.109). FOR THIS PROBLEM

MY QUERY IS: SELECT ROUND(Max(Avg_Cost),2) AS "Highest Avg Cost", ROUND(Min(Avg_Cost),2) AS "Lowest Avg Cost" FROM

( SELECT AVG(BOOK.BOOK_COST) AS Avg_Cost

FROM BOOK 

GROUP BY BOOK.BOOK_SUBJECT);

Step by Step Solution

3.39 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Your query appears to be on the right track but there is a small issu... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!