Challenge: Analyze Price Distribution
Oppgave
Swipe to start coding
Write a query to find the minimum, maximum, and average product price from the products table.
- Use the
MINfunction to get the lowest value in thepricecolumn. - Use the
MAXfunction to get the highest value in thepricecolumn. - Use the
AVGfunction to get the average value in thepricecolumn. - Return these values as
min_price,max_price, andavg_price.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 5
single
Spør AI
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
Suggested prompts:
Can you explain that in simpler terms?
What are the main benefits of this approach?
Are there any common mistakes to avoid with this?
Fantastisk!
Completion rate forbedret til 2.86
Challenge: Analyze Price Distribution
Sveip for å vise menyen
Oppgave
Swipe to start coding
Write a query to find the minimum, maximum, and average product price from the products table.
- Use the
MINfunction to get the lowest value in thepricecolumn. - Use the
MAXfunction to get the highest value in thepricecolumn. - Use the
AVGfunction to get the average value in thepricecolumn. - Return these values as
min_price,max_price, andavg_price.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 5
single