我正在使用Microsoft SQL Server,并且在尝试进行报告时无法获得多部分标识符的绑定问题
尝试创建报告
SELECT DISTINCT
tblCMPlnFEDAD_JOB.JOB_ID,
tblCMPlnFEDAD_JOB.JOB_NM,
tblCMAd.JOB_ID,
tblCMPlnAD.AD_ID,
tblCMPlnAD.JOB_ID,
tblInventoryItem.itemNumber,
tblInventoryItem.itemDescription
FROM tblInventoryItem
INNER JOIN tblCMPlnFEDAD_JOB ON tblCMAd.JOB_ID = tblCMPlnFEDAD.JOB_ID (where I am getting the bound error)
INNER JOIN tblCMAd ON tblCMPlnFEDAD_JOB.JOB_ID = tblCMAd.JOB_ID
INNER JOIN tblCMPlnAD ON tblCMAd.AD_ID = tblCMPlnAD.AD_ID
INNER JOIN tblCMCut ON tblCMAd.AD_ID = tblCMCut.AD_ID
INNER JOIN tblCMCutItem ON (tblCMCut.AD_ID = tblCMCutItem.AD_ID)
AND (tblCMCut.cutNumber = tblCMCutItem.CutNumber)
INNER JOIN tblCMContentBlock ON tblCMCutItem.ContentBlockID = tblCMContentBlock.ContentBlockID
INNER JOIN tblCMProduct ON tblCMCutItem.ProductID = tblCMProduct.ProductID
INNER JOIN tblInventoryItemJobs ON tblInventoryItem.itemNumber = tblInventoryItemJobs.itemNumber
WHERE tblCMPlnFEDAD_JOB.AMC_YEAR = @AMC_YEAR
AND tblCMPlnFEDAD_JOB.AMC_PRD IN (@AMC_PRD)
AND tblCMPlnFEDAD_JOB.JOB_SUB_TYP1_NBR IN (@JOB_SUB_TYP1_NBR)