我無法查詢它顯示我的錯誤消息。無法綁定多部分標識符。 SQL服務器
Msg 4104,Level 16,State 1,Line 17多部分標識符 「D1.DesignationId」無法綁定。消息4104,級別16,狀態1, 行18多部分標識符「A.EmployeeId」無法綁定。 Msg 4104,Level 16,State 1,Line 18多部分標識符 「D1.EmpId」無法綁定。消息4104,級別16,狀態1,行21 無法綁定多部分標識符「A.EmployeeId」。
我的查詢代碼是:
SELECT
RequisitionAuthoritySignatury.ReqSampleDetailsId,
RequisitionAuthoritySignatury.ReqId,
D1.EmpName,
D1.DesignationId,
G.Name,
RequisitionAuthoritySignatury.PreparedBy
FROM
RequisitionAuthoritySignatury
INNER JOIN AuthoritySignatury A ON RequisitionAuthoritySignatury.PreparedBy = A.AuthoritySignaturyId
INNER JOIN AuthoritySignatury B ON RequisitionAuthoritySignatury.PreparedBy = B.AuthoritySignaturyId
INNER JOIN AuthoritySignatury C ON RequisitionAuthoritySignatury.PreparedBy = C.AuthoritySignaturyId
INNER JOIN EmployeeMaster D1
INNER JOIN EmployeeMaster E
INNER JOIN EmployeeMaster F
INNER JOIN DesignationMaster G
ON D1.DesignationId = G.DesignationId
ON A.EmployeeId = D1.EmpId
INNER JOIN DesignationMaster H
ON E.DesignationId = H.DesignationId
ON A.EmployeeId = E.EmpId
INNER JOIN DesignationMaster I
ON F.DesignationId = I.DesignationId
ON A.EmployeeId = F.EmpId
WHERE
RequisitionAuthoritySignatury.ReqId=158 AND
RequisitionAuthoritySignatury.ReqSampleDetailsId=260;
D1.DesignationId,D1.EmpId colud不意味着這些列不是該表EmployeeMaster –
我沒有得到你的觀點可用。 –