Can you walk me through a project where you used data to make a recommendation or solve a problem?
For this SQL exercise, use the supplied project data to identify a recommendation for each eligible customer segment. Include only completed positive-value transactions and exclude records without a usable segment or product category.
Output
- One row per customer segment with an eligible recommendation
- Columns:
segment, recommended_category, distinct_customers, and category_revenue
- Return the category with the highest revenue per segment, requiring purchases from at least two distinct customers
- Order by
segment ascending; break revenue ties by category name ascending