How would you use a CASE statement to create customer segments?
Using the customers table, assign each customer a segment based on annual_spend. Treat missing spending values as Unclassified.
customer_id, customer_name, and customer_segmentcustomer_id ascending| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique customer identifier |
| customer_name | VARCHAR(100) | Customer full name |
| annual_spend | NUMERIC(10,2) | Customer spending during the year |