Skip to content

Commit a302ad6

Browse files
committed
update
1 parent 37b6b36 commit a302ad6

1 file changed

Lines changed: 18 additions & 16 deletions

File tree

docs/t-sql/queries/hints-transact-sql-join.md

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,25 +53,27 @@ ms.author: vanto
5353

5454
## Arguments
5555

56-
LOOP | HASH | MERGE
57-
Specifies that the join in the query should use looping, hashing, or merging. Using LOOP |HASH | MERGE JOIN enforces a particular join between two tables. LOOP cannot be specified together with RIGHT or FULL as a join type. For more information, see [Joins](../../relational-databases/performance/joins.md).
58-
59-
REMOTE
60-
Specifies that the join operation is performed on the site of the right table. This is useful when the left table is a local table and the right table is a remote table. REMOTE should be used only when the left table has fewer rows than the right table.
61-
62-
If the right table is local, the join is performed locally. If both tables are remote but from different data sources, REMOTE causes the join to be performed on the site of the right table. If both tables are remote tables from the same data source, REMOTE is not required.
63-
64-
REMOTE cannot be used when one of the values being compared in the join predicate is cast to a different collation using the COLLATE clause.
65-
66-
REMOTE can be used only for INNER JOIN operations.
56+
LOOP | HASH | MERGE
57+
Specifies that the join in the query should use looping, hashing, or merging. Using LOOP |HASH | MERGE JOIN enforces a particular join between two tables. LOOP cannot be specified together with RIGHT or FULL as a join type. For more information, see [Joins](../../relational-databases/performance/joins.md).
58+
59+
REMOTE
60+
Specifies that the join operation is performed on the site of the right table. This is useful when the left table is a local table and the right table is a remote table. REMOTE should be used only when the left table has fewer rows than the right table.
61+
62+
If the right table is local, the join is performed locally. If both tables are remote but from different data sources, REMOTE causes the join to be performed on the site of the right table. If both tables are remote tables from the same data source, REMOTE is not required.
63+
64+
REMOTE cannot be used when one of the values being compared in the join predicate is cast to a different collation using the COLLATE clause.
65+
66+
REMOTE can be used only for INNER JOIN operations.
6767

68-
## Remarks
69-
Join hints are specified in the FROM clause of a query. Join hints enforce a join strategy between two tables. If a join hint is specified for any two tables, the query optimizer automatically enforces the join order for all joined tables in the query, based on the position of the ON keywords. When a CROSS JOIN is used without the ON clause, parentheses can be used to indicate the join order.
68+
## Remarks
69+
70+
Join hints are specified in the FROM clause of a query. Join hints enforce a join strategy between two tables. If a join hint is specified for any two tables, the query optimizer automatically enforces the join order for all joined tables in the query, based on the position of the ON keywords. When a CROSS JOIN is used without the ON clause, parentheses can be used to indicate the join order.
7071

7172
## Examples
7273

73-
### A. Using HASH
74-
The following example specifies that the `JOIN` operation in the query is performed by a `HASH` join. The example uses the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal-md.md)] database.
74+
### A. Using HASH
75+
76+
The following example specifies that the `JOIN` operation in the query is performed by a `HASH` join. The example uses the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal-md.md)] database.
7577

7678
```sql
7779
SELECT p.Name, pr.ProductReviewID
@@ -105,6 +107,6 @@ GO
105107
```
106108

107109
## See Also
108-
[Hints (Transact-SQL)](../../t-sql/queries/hints-transact-sql.md)
110+
[Hints (Transact-SQL)](../../t-sql/queries/hints-transact-sql.md)
109111

110112

0 commit comments

Comments
 (0)