SELECT product_id,time_id,customer_id,promotion_id,store_id,store_sales,store_cost,SUM(unit_sales) total_unit_sales
FROM sales_fact_1997 a
LEFT JOIN product p ON (a.product_id = p.product_id)
group by product_id order by total_unit_sales;
我想知道为什么会出现错误:
字段列表中的列“product_id”不明确
我引用的两个表都有一个 product_id 列。
提前致谢...