Challenge: Apply Business Logic with CASE WHEN
Tehtävä
Swipe to start coding
Use CASE WHEN statements to apply business logic for labeling orders and categorizing products.
- For orders, assign a label of 'High' to each order where
total_amountis greater than or equal to 500. Assign a label of 'Standard' to all other orders. - For products, assign a label of 'Tech' to each product that belongs to the 'Electronics' category. Assign a label of 'Other' to all other products.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 2. Luku 2
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Suggested prompts:
Can you explain this in simpler terms?
What are the main takeaways from this?
Can you give me a real-world example?
Mahtavaa!
Completion arvosana parantunut arvoon 5.56
Challenge: Apply Business Logic with CASE WHEN
Pyyhkäise näyttääksesi valikon
Tehtävä
Swipe to start coding
Use CASE WHEN statements to apply business logic for labeling orders and categorizing products.
- For orders, assign a label of 'High' to each order where
total_amountis greater than or equal to 500. Assign a label of 'Standard' to all other orders. - For products, assign a label of 'Tech' to each product that belongs to the 'Electronics' category. Assign a label of 'Other' to all other products.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 2. Luku 2
single