我正在三个表之间进行连接,虽然这些连接没有组合就可以工作,但当我将它们加在一起时,它会告诉我“'Person' 附近的语法不正确”。
这是我的查询:
SELECT [AddressLine1], [FirstName], [LastName]
FROM
[Person].[BusinessEntityAddress] join [Person].[Address]
on ([Person].[BusinessEntityAddress].[AddressID]=[Person].[Address].[AddressID])
[Person].[Person]
join [Person].[BusinessEntityAddress]
on ([Person].[Person].[BusinessEntityID]=[Person].[BusinessEntityAddress].[BusinessEntityID])
WHERE FirstName= 'Terri' AND LastName= 'Duffy'
问题在最后一行[Person].[Person] join [Person].[BusinessEntityAddress]...
任何帮助将不胜感激。我可以回答问题以使其更具体。