Challenge: Price Tier Assignment
Tâche
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'.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 5
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Génial!
Completion taux amélioré à 4.17
Challenge: Price Tier Assignment
Glissez pour afficher le menu
Tâche
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'.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 5
single