The cheapest combination
Let's try to use acquired knowledge to solve the following problem!
Oppgave
Swipe to start coding
From the audi_cars
table extract all the combinations of fueltype
+ transmission
. Round price to 2 decimals and order using it in ascending order.
Løsning
9
1
2
3
4
SELECT fueltype, transmission, ROUND(AVG(price),2)
FROM audi_cars
GROUP BY fueltype, transmission
ORDER BY AVG(price)
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 5. Kapittel 4
9
1
No query executed yet... |
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår