我有以下查询,但没有给我想要的输出:
SELECT DBO.[PLAN].DATE,
DBO.TBRECEIPT.RECEIPTDATE,
DBO.TBRECEIPTLINE.RECEIPTQTY,
DBO.PLAN_LINE.PALLETS
FROM DBO.TBRECEIPT
INNER JOIN DBO.TBRECEIPTLINE
ON DBO.TBRECEIPT.PKID = DBO.TBRECEIPTLINE.RECEIPTID
INNER JOIN DBO.[PLAN]
INNER JOIN DBO.PLAN_LINE
ON DBO.[PLAN].PKID = DBO.PLAN_LINE.PLANID
ON DBO.TBRECEIPT.RECEIPTDATE = DBO.[PLAN].DATE
我必须错误地关联这两组标题/行表。
任何人都可以发现错误吗?
谢谢