Hi could someone help me with this problem for my college assignment
cars
Make MadeIn Sales
GM 2005 100
GM 2006 1200
GM 2007 600
What I have to do is work out the greatest increase in Sales between 2005 and 2007 and display this value and the Make
I think I have the answer to the increase but cannot display the 'Make' to go along side the increase in sales (growth)
This is what I have so far
select max(growth)
from (
select make, max(sales) - min(sales) as growth
from cars group by make) as carsales,cars;
I need the result to show
Make Growth
GM 1100
Thanks for any help you can give