Challenge: Categorize Sales Volume
Aufgabe
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'.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 2
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Großartig!
Completion Rate verbessert auf 4.17
Challenge: Categorize Sales Volume
Swipe um das Menü anzuzeigen
Aufgabe
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'.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 2
single