Challenge: Categorize Sales Volume
Tarea
Swipe to start coding
Write a query that selects all columns from the sales table and adds a new column named volume_category. The value of volume_category should be determined by the following rules:
- If
quantityis greater than or equal to 100, setvolume_categoryto'Bulk'. - If
quantityis greater than or equal to 20 but less than 100, setvolume_categoryto'Standard'. - If
quantityis less than 20, setvolume_categoryto'Small'.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 2
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: Categorize Sales Volume
Desliza para mostrar el menú
Tarea
Swipe to start coding
Write a query that selects all columns from the sales table and adds a new column named volume_category. The value of volume_category should be determined by the following rules:
- If
quantityis greater than or equal to 100, setvolume_categoryto'Bulk'. - If
quantityis greater than or equal to 20 but less than 100, setvolume_categoryto'Standard'. - If
quantityis less than 20, setvolume_categoryto'Small'.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 2
single