Challenge: Apply Business Logic with CASE WHEN
Opgave
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.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 2
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Fantastisk!
Completion rate forbedret til 5.56
Challenge: Apply Business Logic with CASE WHEN
Stryg for at vise menuen
Opgave
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.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 2
single