Challenge: Price Tier Assignment
Task
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
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 5
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 4.17
Challenge: Price Tier Assignment
Swipe to show menu
Task
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
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 5
single