May 2019
Intermediate to advanced
484 pages
11h 23m
English
No Join Predicate happens when SQL Server cannot identify a join predicate to apply to a join between two or more tables, and none has been specified in the T-SQL statement text.
The following example shows a query executed in the AdventureWorks sample database with a No Join Predicate warning:
SELECT*FROM Sales.SalesOrderHeader AS h, Sales.SalesOrderDetail AS d, Production.Product AS pWHERE h.SalesOrderID = 49879;
Unlike all other warnings, No Join Predicate is shown as a red circle with a white X in the graphical query execution plan:

In the generated plan, we can see the warning under the properties of the Nested Loops ...
Read now
Unlock full access