简体   繁体   English

多部分标识符无法绑定

[英]multi-part identifier could not be bound

The multi-part identifier "Reporting_Information.Id_Department_Description" could not be bound. 不能绑定多部分标识符“ Reporting_Information.Id_Department_Description”。

Select 
    Basic_Information.Company_No, Basic_Information.Company_Name, Basic_Information.Employee_Code,
    Basic_Information.Surname + ' ' +   Basic_Information.Initials AS Employee_Name,
    Employee_Exceptions.Date,
    Employee_Exceptions.Day ,   Employee_Exceptions.Time ,   Employee_Exceptions.Exception,Employee_Exceptions.Exception_Status,    
    Company_Information.Trading_Or_Other_Name,Company_Information.Address_Line_1, 
    Company_Information.Address_Line_2,Company_Information.Address_Line_3,
    Company_Information.Address_Line_Postal_Code,Company_Information.Period_Start_Date,Department_Descriptions.Short_Description ,      
    Company_Information.Period_End_Date,(CASE Company_Information.Payment_Period
        WHEN 'M' THEN 'Monthly (12)'
        WHEN 'B' THEN 'Bi-Weekly (26)' 
        WHEN 'W' THEN 'Weekly (52)'END) as Payment_Period         
from  Employee_Exceptions     
RIGHT OUTER JOIN Basic_Information  
    ON ( Employee_Exceptions.Id_Basic_Information = Basic_Information.Id_Basic_Information)
LEFT OUTER JOIN Company_Information  
    ON ( Company_Information.Id_Company = Basic_Information.Id_Company)
LEFT OUTER JOIN Department_Descriptions 
    ON (Id_Department_Description = Reporting_Information.Id_Department_Description)

Please help 请帮忙

Ok Guys i won i just needed to add an extra Join there, 好的,我赢了,我只需要在此处添加一个额外的Join,
Select Basic_Information.Company_No, Basic_Information.Company_Name , Basic_Information.Employee_Code , 选择Basic_Information.Company_No,Basic_Information.Company_Name,Basic_Information.Employee_Code,
Basic_Information.Surname + ' ' + Basic_Information.Initials AS Employee_Name , Employee_Exceptions.Date , Basic_Information.Surname +''+ Basic_Information.Initials AS Employee_Name,Employee_Exceptions.Date,
Employee_Exceptions.Day , Employee_Exceptions.Time , Employee_Exceptions.Exception,Employee_Exceptions.Exception_Status, Employee_Exceptions.Day,Employee_Exceptions.Time,Employee_Exceptions.Exception,Employee_Exceptions.Exception_Status,
Company_Information.Trading_Or_Other_Name,Company_Information.Address_Line_1, Company_Information.Address_Line_2,Company_Information.Address_Line_3, Company_Information.Address_Line_Postal_Code,Company_Information.Period_Start_Date,Department_Descriptions.Short_Description , Company_Information.Trading_Or_Other_Name,Company_Information.Address_Line_1,Company_Information.Address_Line_2,Company_Information.Address_Line_3,Company_Information.Address_Line_Postal_Code,Company_Information.Period_Start_Date,Department_Descriptions.Short_Description,
Company_Information.Period_End_Date,(CASE Company_Information.Payment_Period WHEN 'M' THEN 'Monthly (12)' WHEN 'B' THEN 'Bi-Weekly (26)' WHEN 'W' THEN 'Weekly (52)'END) as Payment_Period Company_Information.Period_End_Date,(案例CASE Company_Information.Payment_Period当'M'然后'Monthly(12)'当'B'然后'Bi-Weekly(26)'当'W'THEN'Weekly(52)'END)作为Payment_Period
from Employee_Exceptions 来自Employee_Exceptions
RIGHT OUTER JOIN Basic_Information RIGHT OUTER JOIN基本信息
ON ( Employee_Exceptions.Id_Basic_Information = Basic_Information.Id_Basic_Information) ---Added Join LEFT OUTER JOIN Company_Information 启用(Employee_Exceptions.Id_Basic_Information = Basic_Information.Id_Basic_Information)---添加了加入LEFT OUTER JOIN Company_Information

ON ( Company_Information.Id_Company = Basic_Information.Id_Company) 开启(Company_Information.Id_Company = Basic_Information.Id_Company)

LEFT OUTER JOIN Reporting_Information ON (Reporting_Information.Id_Basic_Information = Basic_Information.Id_Basic_Information) LEFT OUTER JOIN Department_Descriptions ON (Department_Descriptions.Id_Department_Description = Reporting_Information.Id_Department_Description) 左外部联接Reporting_Information ON(Reporting_Information.Id_Basic_Information = Basic_Information.Id_Basic_Information)左外部联接Department_Descriptions ON(Department_Descriptions.Id_Department_Description = Reporting_Information.Id_Department_Description)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM