我正在尝试运行以下查询:
SELECT vtiger_products.productcategory AS "Product Category",
SUM(vtiger_inventoryproductrel.quantity) AS "Line Item Qt"
FROM bi_batch.vtiger_inventoryproductrel
INNER JOIN bi_batch.vtiger_products
ON vtiger_inventoryproductrel.productid
答案 0 :(得分:0)
看起来你需要一个group by子句,你没有一个非聚合列。尝试通过vtiger_products.productcategory"
添加" group