WideWorldImporters
Application.Cities
//
Cities that are part of any address (including geographic location)
SYSTEM VERSIONED
Created: Modified:
Columns
-
//${escapify(column.description)}[int] NOT NULL DEFAULT (NEXT VALUE FOR [Sequences].[CityID])
-
//${escapify(column.description)}[nvarchar](50) NOT NULL
-
//${escapify(column.description)}[int] NOT NULL
-
//${escapify(column.description)}[geography] NULL
-
//${escapify(column.description)}[bigint] NULL
-
[int] NOT NULL
-
[datetime2](8) NOT NULL
-
[datetime2](8) NOT NULL
Indexes
-
PK_Application_CitiesUNIQUE CLUSTEREDCityID
-
//Auto-created to support a foreign keyFK_Application_Cities_StateProvinceIDNONCLUSTEREDStateProvinceID
Foreign Keys
-
FK_Application_Cities_Application_PeopleApplication.PeopleLastEditedBy ⥱ PersonID
-
FK_Application_Cities_StateProvinceID_Application_StateProvincesApplication.StateProvincesStateProvinceID ⥱ StateProvinceID
Sample Data
CityID
CityName
StateProvinceID
Location
LatestRecordedPopulation
LastEditedBy
ValidFrom
ValidTo
1
Aaronsburg
39
[geography]
613
1
3
Abanda
1
[geography]
192
1
4
Abbeville
42
[geography]
5237
1
5
Abbeville
11
[geography]
2908
1
6
Abbeville
1
[geography]
2688
1
7
Abbeville
19
[geography]
12257
1
8
Abbeville
25
[geography]
419
1
9
Abbotsford
52
[geography]
2310
1
10
Abbott
45
[geography]
356
1
11
Abbott
4
[geography]
356
1
12
Abbott
32
[geography]
NULL
1
13
Abbott
49
[geography]
356
1
14
Abbott
51
[geography]
NULL
1
15
Abbottsburg
34
[geography]
NULL
1
16
Abbottstown
39
[geography]
1011
1
17
Abbyville
17
[geography]
87
1
18
Abell
45
[geography]
NULL
1
19
Abercrombie
35
[geography]
263
1
20
Aberdeen
43
[geography]
26091
1
21
Aberdeen
21
[geography]
14959
1
22
Aberdeen
50
[geography]
16896
1
23
Aberdeen
13
[geography]
1994
1
24
Aberdeen
34
[geography]
6350
1
25
Aberdeen
25
[geography]
5612
1
26
Aberdeen
36
[geography]
1638
1