Hi,
I am attempting to join 2 header tables "receipt" and "plan" at date (receiptdate=date)
I'm not getting an output and I suspect a join issue - any ideas:
SELECT dbo.tbReceipt.ReceiptDate, dbo.tbReceiptLine.ReceiptQty, dbo.Plan_Line.Quantity 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 GROUP BY dbo.tbReceipt.ReceiptDate, dbo.tbReceiptLine.ReceiptQty, dbo.Plan_Line.Quantity