Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started