Sql 数据库查询问题
错误消息: Msg 321,15级,状态1,第14行 “Person”不是可识别的表提示选项 您不能Sql 数据库查询问题,sql,sql-server,database,azure-sql-database,Sql,Sql Server,Database,Azure Sql Database,错误消息: Msg 321,15级,状态1,第14行 “Person”不是可识别的表提示选项 您不能在sql server中使用()作为联接参数,您必须在上使用 另外,您两次使用person表,并且从不使用显式联接: use AdventureWorks2017 Go --select FirstName,DueDate , --Product.Name,ProductInventory.ProductID,LastName --from Person.Person , enter cod
在sql server中使用()
作为联接参数,您必须在上使用
另外,您两次使用person表,并且从不使用显式联接:
use AdventureWorks2017
Go
--select FirstName,DueDate ,
--Product.Name,ProductInventory.ProductID,LastName
--from Person.Person , enter code here
--Production.Product,
--Production.ProductInventory,
--Purchasing.PurchaseOrderDetail
--where person.BusinessEntityID = Production.Product.ProductID and > > > > >
person.BusinessEntityID=PurchaseOrderID
--and Person.LastName like 'a%awa' and( ProductInventory.ProductID between 882 and 992);
**strong text**
select NationalIDNumber,Person.FirstName,JobTitle
from HumanResources.Employee ,Person.Person inner join
Person.Person
using (Person.Person.PK_Person_BusinessEntityID)
where JobTitle like 'Eng%';
使用(Person.Person.PK\u Person\u BusinessEntityID)
可能重复。。。这意味着一个索引提示吗?还是连接条件?因为现在两者都不是。
select NationalIDNumber,Person.FirstName,JobTitle
from HumanResources.Employee e
inner join Person.Person p
on p.PK_Person_BusinessEntityID = e.PK_Person_BusinessEntityID
where JobTitle like 'Eng%';