Avsnitt 6. Kapitel 4
single
Challenge: Relation between engine size and fuel consumption
Svep för att visa menyn
Uppgift
Swipe to start coding
From the audi_cars table calculate the average fuel consumption (mpg column) for each engine size (enginesize). Order results in descending order by the average value of mpg. Expected output: enginesize | average mpg.
Lösning
The result may seem strange, but don't forget that the
mpgcolumn refers to miles per gallon. The greater this value, the less fuel car consumes.
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 6. Kapitel 4
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal