I am working with Microsoft SQL Server 2005, and when I execute this query:
select
F.E,
S.E
from
Subject
I get these errors:
The multi-part identifier “F.E” could not be bound.
The multi-part identifier “S.E” could not be bound.
but when execute this query, it works fine
select * from Subject
What do these errors mean?
The error means that the SQL server doesn’t know what
F.EandS.Eis.If
Srefers to yourSubjecttable, for instace, you need to assign the nameS:That will fetch all fields (
*) in all rows (lack ofWHERE) from the tableSubjectwhich is temporarily calledS.If you want to fetch only the field
EfromSubject, you could writeThis is the exact same as writing