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
Step: 1
Your query appears to be on the right track but there is a small issu...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Database Systems Design Implementation and Management
Authors: Carlos Coronel, Steven Morris
11th edition
9781305323230, 1285196147, 1305323238, 978-1285196145
Students also viewed these Databases questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App