Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Show the Min MPG and Max MPG for each car model. Display the Car Maker name and the Model as one field, Chrysler Dodge. Both
Show the Min MPG and Max MPG for each car model. Display the Car Maker name and the Model as one field, Chrysler Dodge. Both fields should start with a capital letter, concatenate them together with a hypen. Order the results by the Car Maker name.
SELECT initcap(c.maker) ||'-'|| initcap(m.model) as "Maker and Model", MAX(MPG), MIN(MPG) from CAR_DETAILS D, CAR_MAKERS C, MODEL_DETAILS M where D.ID = C.ID AND M.MAKER = C.ID GROUP BY "Maker and Model" order by c.maker
can someone please fix my code!!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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 Started