첫 번째 테이블에서 속임수를 제거하는 방법을 알아내는 데 문제가 있습니다. 참조 enter image description here여러 개의 중복 된 항목이있는 SQL 조인
여기를 강조 행을 참조하십시오 이것은 내가 슈퍼 긴 열 이름에 대한
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"
죄송를 입력있어 formaula입니다! 내가 당신이 (예 : 고객, 꼬리표, EST_Item 등) 무언가에 의해 그룹에 필요한 계산하여 행을 줄이기 위해? "Query_Estimate 품목" "표에서 속는 제거
감사
'Bill_Qty'가 다르기 때문에 레코드가 중복되지 않습니다. 어떻게 쌍을 하나의 레코드로 축소할까요? ? –