我相信你们会明白为什么我会收到语法错误。我也应该清楚我想要完成的事情。非常感谢我在不偏离当前代码的情况下需要做出哪些改变。
SELECT [Worker Listing.Fname], [Worker Listing.Lname], [Desired Job Titles.JobTitle]
FROM [Worker Listing]
INNER JOIN [Desired Job Titles]
ON Worker Listing.JobID1=Desired Job Titles.JobID
OR Worker Listing.JobID2=Desired Job Titles.JobID
OR Worker Listing.JobID3=Desired Job Titles.JobID
OR Worker Listing.JobID4=Desired Job Titles.JobID
OR Worker Listing.JobID5=Desired Job Titles.JobID
OR Worker Listing.JobID6=Desired Job Titles.JobID
ORDER BY [Worker Listing.LName];
答案 0 :(得分:1)
您必须在Desired Job Titles
[Desired Job Titles]
中将您的表格名称[Worker Listing]
引用为SELECT [Worker Listing].[Fname], [Worker Listing].[Lname], [Desired Job Titles].[JobTitle]
FROM [Worker Listing]
INNER JOIN [Desired Job Titles]
ON [Worker Listing].JobID1=[Desired Job Titles].JobID
OR [Worker Listing].JobID2=[Desired Job Titles].JobID
OR [Worker Listing].JobID3=[Desired Job Titles].JobID
OR [Worker Listing].JobID4=[Desired Job Titles].JobID
OR [Worker Listing].JobID5=[Desired Job Titles].JobID
OR [Worker Listing].JobID6=[Desired Job Titles].JobID
ORDER BY [Worker Listing].[LName];
,同样在{{1}}:
{{1}}
答案 1 :(得分:0)
[Desired Job Titles.JobTitle]需要[Desired Job Titles]。[JobTitle]