【发布时间】:2016-12-02 14:37:13
【问题描述】:
我在弄清楚如何摆脱第一张桌子上的骗子时遇到了麻烦。请在此处查看突出显示的行以供参考enter image description here
这是我输入的公式
SELECT
"Classes.Class Name" AS Customer,
"Customers.Customer Name" as docket,
"Items.Item Name" as EST_Item,
Quantity as EST_Qty,
"Unit Price" as EST_UnitPrice,
"Query_Bill Line items"."Items.Item Name" as BILL_Item,
"Query_Bill Line items"."Quantity" as Bill_Qty,
"Query_Bill Line items"."Unit Price" as Bill_UnitPrice
FROM "Query_Estimate Line Items" LEFT JOIN "Query_Bill Line Items" ON "Query_Estimate Line Items"."cUSTOMERS.cUSTOMER NAME" = "Query_Bill Line Items"."CUSTOMERS.CUSTOMER NAME"
AND "Query_Estimate Line Items"."iTEMS.ITEM NAME" = "Query_Bill Line Items"."ITEMS.ITEM NAME"
对不起,超长的列名!为了摆脱 Table1 ""Query_Estimate Line Items" 中的欺骗,我缺少什么?
谢谢
【问题讨论】:
-
记录不重复,因为
Bill_Qty不同。您想如何将这些对减少为一条记录?