Challenge: Price Tier Assignment
Oppgave
Swipe to start coding
Assign a price tier label to each sale using the price value in the sales table. Add a new column called price_tier to the result set with the following logic:
- If the
priceis greater than 700, assign the value'Premium'. - If the
priceis between 300 and 700 inclusive, assign the value'Standard'. - Otherwise, assign the value
'Budget'.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. 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
Fantastisk!
Completion rate forbedret til 4.17
Challenge: Price Tier Assignment
Sveip for å vise menyen
Oppgave
Swipe to start coding
Assign a price tier label to each sale using the price value in the sales table. Add a new column called price_tier to the result set with the following logic:
- If the
priceis greater than 700, assign the value'Premium'. - If the
priceis between 300 and 700 inclusive, assign the value'Standard'. - Otherwise, assign the value
'Budget'.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 5
single