Challenge: Apply Business Logic with CASE WHEN
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 2
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 5.56
Challenge: Apply Business Logic with CASE WHEN
Sveip for å vise menyen
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 2
single