Question: This is telling me invalid column name FirstName & LastName as it doesn't have a table it is coming from that i can see and
This is telling me "invalid column name "FirstName & LastName" as it doesn't have a table it is coming from that i can see and i need that for this to work. I see the "Person.Person" has first & last name but it wasn't brought in when I asked for help the last few times
design query editor
QD QE
SQLQuerysql SSHIELAlshiel
SQLQuerysql SHI...SHIELAlshiel
SQLQuerysql SHI...SHIELAlshiel
SELECT EBusinessEntityID AS EmployeeID, PFirstName, PLastName,
DName AS DepartmentName,
EPH.RateChangeDate AS LastRaiseDate,
CASE WHEN EPH.RateChangeDate IS NULL OR EPH.RateChangeDate DATEADDmonth GETDATE
THEN No Raise in Months'
ELSE OK END AS RaiseStatus
FROM HumanResources. EmployeePayHistory EPH
JOIN Person. Person AS P ON EBusinessEntityID PBusinessEntityID
JOIN HumanResources.Employee E ON EPH.BusinessEntityID EBusinessEntityID
JOIN HumanResources.EmployeeDepartmentHistory EDH ON EBusinessEntityID EDH.BusinessEntityID
JOIN HumanResources.Department D ON EDH.DepartmentID DDepartmentID
WHERE EDH. EndDate IS NULL
ORDER BY PLastName, PFirstName;
I
Messages
Msg Level state Line
The multipart identifier. EBusinessEntityID" could not be bound.
Completion time: T:::
Now Im getting "MultiPart Identifier EBusinessEntityID could not be bound. I have sent the same question over & over and nothing is helping me
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
