Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

Your query appears to be on the right track but there is a small issu... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation and Management

Authors: Carlos Coronel, Steven Morris

11th edition

9781305323230, 1285196147, 1305323238, 978-1285196145

More Books

Students also viewed these Databases questions

Question

6.8 Find a z o such that P(-z

Answered: 1 week ago