Person.StateProvince Table
Description
State and province lookup table.
Properties
| Creation Date | 17/07/2014 16:11 |
| File Group | PRIMARY |
| Text File Group | |
| System Object | ![]() |
| Published for Replication | ![]() |
| Rows | 181 |
| Data Space Used | 16.00 KB |
| Index Space Used | 64.00 KB |
Columns
| Column Name | Description | Datatype | Length | Allow Nulls | Default | Formula | |
|---|---|---|---|---|---|---|---|
| StateProvinceID | Primary key for StateProvince records. | Integer | 4 | |||
| StateProvinceCode | ISO standard state or province code. | WChar | 3 | ||||
| CountryRegionCode | ISO standard country or region code. Foreign key to CountryRegion.CountryRegionCode. | VarWChar | 3 | ||||
| IsOnlyStateProvinceFlag | 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. | dbo.Flag | 1 | ((1)) | |||
| Name | State or province description. | dbo.Name | 50 | ||||
| TerritoryID | ID of the territory in which the state or province is located. Foreign key to SalesTerritory.SalesTerritoryID. | Integer | 4 | ||||
| rowguid | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. | GUID | 16 | (newid()) | |||
| ModifiedDate | Date and time the record was last updated. | DBTimeStamp | 4 | (getdate()) |
Indexes
| Index | Description | Primary | Unique |
|---|---|---|---|
| AK_StateProvince_Name | Unique nonclustered index. | ![]() | |
| AK_StateProvince_rowguid | Unique nonclustered index. Used to support replication samples. | ![]() | |
| AK_StateProvince_StateProvinceCode_CountryRegionCode | Unique nonclustered index. | ![]() | |
| PK_StateProvince_StateProvinceID | Primary key (clustered) constraint | ![]() | ![]() |
Relationships
| Relationship | Description |
|---|---|
| FK_Address_StateProvince_StateProvinceID | Foreign key constraint referencing StateProvince.StateProvinceID. |
| FK_SalesTaxRate_StateProvince_StateProvinceID | Foreign key constraint referencing StateProvince.StateProvinceID. |
| FK_StateProvince_CountryRegion_CountryRegionCode | Foreign key constraint referencing CountryRegion.CountryRegionCode. |
| FK_StateProvince_SalesTerritory_TerritoryID | Foreign key constraint referencing SalesTerritory.TerritoryID. |
Objects that depend on Person.StateProvince
| Database Object | Object Type | Description | Dep Level | |
|---|---|---|---|---|
![]() | Person.Address | Table | Street address information for customers, employees, and vendors. | 1 |
![]() | Person.BusinessEntityAddress | Table | Cross-reference table mapping customers, vendors, and employees to their addresses. | 2 |
![]() | iduSalesOrderDetail | Trigger | AFTER INSERT, DELETE, UPDATE trigger that inserts a row in the TransactionHistory table, updates ModifiedDate in SalesOrderDetail and updates the SalesOrderHeader.SubTotal column. | 4 |
![]() | Sales.SalesOrderDetail | Table | Individual products associated with a specific sales order. See SalesOrderHeader. | 3 |
![]() | Sales.SalesOrderHeader | Table | General sales order information. | 2 |
![]() | Sales.SalesOrderHeaderSalesReason | Table | Cross-reference table mapping sales orders to sales reason codes. | 3 |
![]() | Sales.SalesTaxRate | Table | Tax rate lookup table. | 1 |
![]() | uSalesOrderHeader | Trigger | AFTER UPDATE trigger that updates the RevisionNumber and ModifiedDate columns in the SalesOrderHeader table.Updates the SalesYTD column in the SalesPerson and SalesTerritory tables. | 3 |
![]() | HumanResources.vEmployee | View | Employee names and addresses. | 1 |
![]() | Sales.vIndividualCustomer | View | Individual customers (names and addresses) that purchase Adventure Works Cycles products online. | 1 |
![]() | Sales.vSalesPerson | View | Sales representiatives (names and addresses) and their sales-related information. | 1 |
![]() | Sales.vSalesPersonSalesByFiscalYears | View | Uses PIVOT to return aggregated sales information for each sales representative. | 3 |
![]() | Person.vStateProvinceCountryRegion | View | Joins StateProvince table with CountryRegion table. | 1 |
![]() | Sales.vStoreWithAddresses | View | Stores (including store addresses) that sell Adventure Works Cycles products to consumers. | 1 |
![]() | Purchasing.vVendorWithAddresses | View | Vendor (company) names and addresses . | 1 |
Objects that Person.StateProvince depends on
| Database Object | Object Type | Description | Dep Level | |
|---|---|---|---|---|
![]() | Person.CountryRegion | Table | Lookup table containing the ISO standard codes for countries and regions. | 1 |
![]() | dbo.Flag | User Defined Data Type | 1 | |
![]() | dbo.Name | User Defined Data Type | 1 | |
![]() | Sales.SalesTerritory | Table | Sales territory lookup table. | 1 |
SQL
|
See Also





