Skip to content

Commit 448adaa

Browse files
authored
Update develop-tables-statistics.md
change to population
1 parent a9be326 commit 448adaa

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -647,23 +647,18 @@ 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 us_population.csv file:
650+
For example, to create statistics with default options (FULLSCAN) for a population column of the dataset based on the us_population.csv file:
651651

652652
```sql
653653

654654
EXEC sys.sp_create_openrowset_statistics N'SELECT
655-
year
655+
population
656656
FROM OPENROWSET(
657657
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)
661-
WITH (
662-
[country_code] VARCHAR (5) COLLATE Latin1_General_100_BIN2_UTF8 ,
663-
[country_name] VARCHAR (100) COLLATE Latin1_General_100_BIN2_UTF8 ,
664-
[year] smallint,
665-
[population] bigint
666-
) AS [r]'
661+
AS [r]'
667662

668663
```
669664

0 commit comments

Comments
 (0)