Challenge: Categorize Sales Volume
Compito
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'.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 1. Capitolo 2
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Fantastico!
Completion tasso migliorato a 4.17
Challenge: Categorize Sales Volume
Scorri per mostrare il menu
Compito
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'.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 1. Capitolo 2
single