Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/lua/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql 数据库查询问题_Sql_Sql Server_Database_Azure Sql Database - Fatal编程技术网

Sql 数据库查询问题

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

错误消息:

Msg 321,15级,状态1,第14行 “Person”不是可识别的表提示选项

您不能
在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%';