Skip to content
Advertisement

Multi Part Identifier Can Not be Bound

I’m having trouble getting past this error. I’m using SQL Server 2017 (v14):

The multi-part identifier “PS_FFC.Date” could not be bound. The multi-part identifier “PS_FFC.Date: could not be bound. The multi-part identifier “PS_FFC.Employee ID” could not be bound.

Code:

The table I’m pulling from looks like:

This what I’m hoping for the result to look like:

Advertisement

Answer

Your second subquery is using the alias PS_FFC_2 for the table and you’re referencing as PS_FFC. The good thing is that you don’t need the subqueries for this and you can simply use a CASE expression to aggregate only the rows you need.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement