Challenge: Regional Discount Flag
Tarea
Swipe to start coding
Write a query that adds a column discount_eligible to the sales table output. The value should be 'Yes' if the region is 'East' or 'West', and 'No' otherwise.
- Add a column named
discount_eligibleusing aCASE WHENstatement. - Return
'Yes'indiscount_eligibleif theregionis'East'or'West'. - Return
'No'indiscount_eligiblefor all other regions.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 3
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Genial!
Completion tasa mejorada a 4.17
Challenge: Regional Discount Flag
Desliza para mostrar el menú
Tarea
Swipe to start coding
Write a query that adds a column discount_eligible to the sales table output. The value should be 'Yes' if the region is 'East' or 'West', and 'No' otherwise.
- Add a column named
discount_eligibleusing aCASE WHENstatement. - Return
'Yes'indiscount_eligibleif theregionis'East'or'West'. - Return
'No'indiscount_eligiblefor all other regions.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 3
single