任务级别:Amazon/E-commerce。 **条件:** 分析客户的首次购买:平均订单金额、最受欢迎的类别、周几。 **表:** - ecommerce_orders (order_id, customer_id, order_date, total_amount, ...) - order_items (order_id, product_id, ...) - ecommerce_products (product_id, category_id, ...) **要求:** 1. 确定每个客户的第一个订单 2. 计算:avg_first_order_amount, most_common_first_category, most_common_weekday 3. 与迄今为止的平均值比较
登录后解题
开始解题