Databases > WideWorldImporters > Tables > Application.StateProvinces

WideWorldImporters

Application.StateProvinces

//
States or provinces that contain cities (including geographic location)

SYSTEM VERSIONED

Created: Modified:

Columns

  • //
    ${escapify(column.description)}
    StateProvinceID
    [int] NOT NULL DEFAULT (NEXT VALUE FOR [Sequences].[StateProvinceID])
  • //
    ${escapify(column.description)}
    StateProvinceCode
    [nvarchar](5) NOT NULL
  • //
    ${escapify(column.description)}
    StateProvinceName
    [nvarchar](50) NOT NULL
  • //
    ${escapify(column.description)}
    CountryID
    [int] NOT NULL
  • //
    ${escapify(column.description)}
    SalesTerritory
    [nvarchar](50) NOT NULL
  • //
    ${escapify(column.description)}
    Border
    [geography] NULL
  • //
    ${escapify(column.description)}
    LatestRecordedPopulation
    [bigint] NULL
  • LastEditedBy
    [int] NOT NULL
  • ValidFrom
    [datetime2](8) NOT NULL
  • ValidTo
    [datetime2](8) NOT NULL

Indexes

  • PK_Application_StateProvinces
    UNIQUE CLUSTERED
    StateProvinceID
  • UQ_Application_StateProvinces_StateProvinceName
    UNIQUE NONCLUSTERED
    StateProvinceName
  • //
    Auto-created to support a foreign key
    FK_Application_StateProvinces_CountryID
    NONCLUSTERED
    CountryID
  • //
    Index used to quickly locate sales territories
    IX_Application_StateProvinces_SalesTerritory
    NONCLUSTERED
    SalesTerritory

Foreign Keys

  • FK_Application_StateProvinces_Application_People
    Application.People
    LastEditedBy ⥱ PersonID
  • FK_Application_StateProvinces_CountryID_Application_Countries
    Application.Countries
    CountryID ⥱ CountryID

Sample Data

StateProvinceID
StateProvinceCode
StateProvinceName
CountryID
SalesTerritory
Border
LatestRecordedPopulation
LastEditedBy
ValidFrom
ValidTo
1
AL
Alabama
230
Southeast
[geography]
5437278
15
2
AK
Alaska
230
Far West
[geography]
735132
1
3
AZ
Arizona
230
Southwest
[geography]
6891688
8
4
AR
Arkansas
230
Southeast
[geography]
3077747
8
5
CA
California
230
Far West
[geography]
41460453
15
6
CO
Colorado
230
Rocky Mountain
[geography]
5698265
15
7
CT
Connecticut
230
New England
[geography]
3739923
20
8
DE
Delaware
230
Mideast
[geography]
1001289
15
9
DC
District of Columbia
230
Mideast
[geography]
685248
8
10
FL
Florida
230
Southeast
[geography]
21148372
8
11
GA
Georgia
230
Southeast
[geography]
9992167
1
12
HI
Hawaii
230
Far West
[geography]
1404054
1
13
ID
Idaho
230
Rocky Mountain
[geography]
1612136
1
14
IL
Illinois
230
Great Lakes
[geography]
13397420
20
15
IN
Indiana
230
Great Lakes
[geography]
6570902
1
16
IA
Iowa
230
Plains
[geography]
3214032
20
17
KS
Kansas
230
Plains
[geography]
2893957
1
18
KY
Kentucky
230
Southeast
[geography]
4571106
20
19
LA
Louisiana
230
Southeast
[geography]
4810488
8
20
ME
Maine
230
New England
[geography]
1381434
8
21
MD
Maryland
230
Mideast
[geography]
5928814
1
22
MA
Massachusetts[E]
230
New England
[geography]
6960536
8
23
MI
Michigan
230
Great Lakes
[geography]
9895622
1
24
MN
Minnesota
230
Plains
[geography]
5637195
8
25
MS
Mississippi
230
Southeast
[geography]
2991207
1