| title | Join Dialog Box | ||
|---|---|---|---|
| ms.custom | seo-lt-2019 | ||
| ms.date | 01/19/2017 | ||
| ms.prod | sql | ||
| ms.prod_service | sql-tools | ||
| ms.technology | ssms | ||
| ms.topic | conceptual | ||
| f1_keywords |
|
||
| ms.assetid | 0d9516bb-4ad3-4fcf-bb77-93474dea698f | ||
| author | markingmyname | ||
| ms.author | maghan | ||
| ms.manager | jroth | ||
| ms.reviewer |
[!INCLUDEappliesto-ss-asdb-asdw-pdw-md] Use this dialog box to specify options for joining tables. To access this dialog, in the Design pane select a join line. Then in the Properties window click Join Condition And Type, and click the ellipses (...) that appear to the right of the property.
By default, related tables are joined using an inner join that creates a result set based on rows containing matching information in the join columns. By setting options in the Join dialog box, you can specify a join based on a different operator, and you can specify an outer join.
For more information about joining tables, see Query with Joins (Visual Database Tools).
Selecting both All rows from and All rows from is equivalent to specifying FULL OUTER JOIN in the SQL statement.
When you select an option to create an outer join, the diamond graphic in the join line changes to indicate that the join is a left outer, right outer, or full outer join.
Note
The words "left" and "right" do not necessarily correspond to the position of tables in the Diagram pane. "Left" refers to the table whose name appears to the left of the keyword JOIN in the SQL statement, and "right" refers to the table whose name appears to the right of the JOIN keyword. If you move tables in the Diagram pane, you do not change which table is considered left or right.
Query with Joins (Visual Database Tools)
Design Queries and Views How-to Topics (Visual Database Tools)
