Skip to content

Commit 81a5968

Browse files
authored
Merge pull request #163080 from KranthiPakala-MSFT/patch-103
(AzureCXP) removed equal sign
2 parents 79fa091 + c6f6c6c commit 81a5968

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/synapse-analytics/sql/develop-tables-statistics.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ Another option you have is to specify the sample size as a percent:
199199
```sql
200200
CREATE STATISTICS col1_stats
201201
ON dbo.table1 (col1)
202-
WITH SAMPLE = 50 PERCENT;
202+
WITH SAMPLE 50 PERCENT;
203203
```
204204

205205
#### Create single-column statistics on only some of the rows
@@ -227,7 +227,7 @@ You can also combine the options together. The following example creates a filte
227227
CREATE STATISTICS stats_col1
228228
ON table1 (col1)
229229
WHERE col1 > '2000101' AND col1 < '20001231'
230-
WITH SAMPLE = 50 PERCENT;
230+
WITH SAMPLE 50 PERCENT;
231231
```
232232

233233
For the full reference, see [CREATE STATISTICS](/sql/t-sql/statements/create-statistics-transact-sql?view=azure-sqldw-latest&preserve-view=true).
@@ -245,7 +245,7 @@ In this example, the histogram is on *product\_category*. Cross-column statistic
245245
CREATE STATISTICS stats_2cols
246246
ON table1 (product_category, product_sub_category)
247247
WHERE product_category > '2000101' AND product_category < '20001231'
248-
WITH SAMPLE = 50 PERCENT;
248+
WITH SAMPLE 50 PERCENT;
249249
```
250250

251251
Because a correlation exists between *product\_category* and *product\_sub\_category*, a multi-column statistics object can be useful if these columns are accessed at the same time.

0 commit comments

Comments
 (0)