Skip to content

Commit a9be326

Browse files
authored
1 parent e4ed02f commit a9be326

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -647,24 +647,23 @@ To create statistics on a column, provide a query that returns the column for wh
647647

648648
By default, if you don't specify otherwise, serverless SQL pool uses 100% of the data provided in the dataset when it creates statistics.
649649

650-
For example, to create statistics with default options (FULLSCAN) for a year column of the dataset based on the population.csv file:
650+
For example, to create statistics with default options (FULLSCAN) for a year column of the dataset based on the us_population.csv file:
651651

652652
```sql
653653

654654
EXEC sys.sp_create_openrowset_statistics N'SELECT
655655
year
656656
FROM OPENROWSET(
657-
BULK ''https://pandemicdatalake.blob.core.windows.net/public/curated/covid-19/ecdc_cases/latest/ecdc_cases.csv'',
657+
BULK ''Https://azureopendatastorage.blob.core.windows.net/censusdatacontainer/raw_us_population_county/us_population.csv'',
658658
FORMAT = ''CSV'',
659659
PARSER_VERSION = ''2.0'',
660660
HEADER_ROW = TRUE)
661661
WITH (
662-
[country_code] VARCHAR (5) COLLATE Latin1_General_BIN2,
663-
[country_name] VARCHAR (100) COLLATE Latin1_General_BIN2,
662+
[country_code] VARCHAR (5) COLLATE Latin1_General_100_BIN2_UTF8 ,
663+
[country_name] VARCHAR (100) COLLATE Latin1_General_100_BIN2_UTF8 ,
664664
[year] smallint,
665665
[population] bigint
666-
) AS [r]
667-
'
666+
) AS [r]'
668667

669668
```
670669

0 commit comments

Comments
 (0)