Editing Person.StateProvince (table)

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 2: Line 2:
  
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
|- valign="top"
+
|-
 
| '''Table
 
| '''Table
 
| Person.StateProvince
 
| Person.StateProvince
|- valign="top"
+
|-
| '''Description
 
| State and province lookup table.
 
 
|}
 
|}
  
=== Columns ===
+
 
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
Line 17: Line 15:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''Description
+
| '''PK
 
+
| '''Index
|- valign="top"
+
 +
|-
 
| StateProvinceID
 
| StateProvinceID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| Primary key for StateProvince records.
+
| PK_StateProvince_StateProvinceID
|- valign="top"
+
|
 +
|-
 
| StateProvinceCode
 
| StateProvinceCode
| nchar(3)
+
| nchar(0)
 
| not null
 
| not null
 
|  
 
|  
| ISO standard state or province code.
+
|  
|- valign="top"
+
| AK_StateProvince_StateProvinceCode_CountryRegionCode
 +
|-
 
| CountryRegionCode
 
| CountryRegionCode
 
| nvarchar(3)
 
| nvarchar(3)
 
| not null
 
| not null
 
|  
 
|  
| ISO standard country or region code. Foreign key to CountryRegion.CountryRegionCode.
+
|  
|- valign="top"
+
| AK_StateProvince_StateProvinceCode_CountryRegionCode
 +
|-
 
| IsOnlyStateProvinceFlag
 
| IsOnlyStateProvinceFlag
 
| dbo.Flag
 
| dbo.Flag
 
| not null
 
| not null
 
| ((1))
 
| ((1))
| 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode.
+
|  
|- valign="top"
+
|
 +
|-
 
| Name
 
| Name
 
| dbo.Name
 
| dbo.Name
 
| not null
 
| not null
 
|  
 
|  
| State or province description.
+
|  
|- valign="top"
+
| AK_StateProvince_Name
 +
|-
 
| TerritoryID
 
| TerritoryID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| ID of the territory in which the state or province is located. Foreign key to SalesTerritory.SalesTerritoryID.
+
|  
|- valign="top"
+
|
 +
|-
 
| rowguid
 
| rowguid
 
| uniqueidentifier
 
| uniqueidentifier
 
| not null
 
| not null
 
| (newid())
 
| (newid())
| ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.
+
|  
|- valign="top"
+
| AK_StateProvince_rowguid
 +
|-
 
| ModifiedDate
 
| ModifiedDate
 
| datetime
 
| datetime
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
| Date and time the record was last updated.
 
|}
 
 
=== Primary Key ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Primary Key
 
| '''Columns
 
|- valign="top"
 
| PK_StateProvince_StateProvinceID
 
| StateProvinceID
 
|}
 
 
=== Indexes ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Index
 
| '''Type
 
| '''Columns
 
 
|- valign="top"
 
| AK_StateProvince_Name
 
| Unique
 
| Name
 
|- valign="top"
 
| AK_StateProvince_rowguid
 
| Unique
 
| rowguid
 
|- valign="top"
 
| AK_StateProvince_StateProvinceCode_CountryRegionCode
 
| Unique
 
| StateProvinceCode, CountryRegionCode
 
|}
 
 
=== Foreign Keys ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Relation
 
| '''Column
 
| '''Referenced Column
 
 
|- valign="top"
 
| [[Person.CountryRegion_(table)|Person.CountryRegion]]
 
| CountryRegionCode
 
| CountryRegionCode
 
|- valign="top"
 
| [[Sales.SalesTerritory_(table)|Sales.SalesTerritory]]
 
| TerritoryID
 
| TerritoryID
 
|}
 
 
=== Detail Tables ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Detail Table
 
| '''Column
 
| '''Referencing Column
 
 
|- valign="top"
 
| [[Person.Address_(table)|Person.Address]]
 
| StateProvinceID
 
| StateProvinceID
 
|- valign="top"
 
| [[Sales.SalesTaxRate_(table)|Sales.SalesTaxRate]]
 
| StateProvinceID
 
| StateProvinceID
 
|}
 
 
=== References ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Dependency Type
 
| '''Object Type
 
| '''Referenced Object
 
 
|- valign="top"
 
| Data Type
 
| Type
 
| [[dbo.Flag_(type)|dbo.Flag]]
 
 
|- valign="top"
 
| Data Type
 
| Type
 
| [[dbo.Name_(type)|dbo.Name]]
 
 
|- valign="top"
 
| Schema
 
| Schema
 
| [[Person_(schema)|Person]]
 
 
|}
 
 
=== Dependencies ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Reference Type
 
| '''Object Type
 
| '''Referencing Object
 
 
|- valign="top"
 
| Select
 
| View
 
| [[HumanResources.vEmployee_(view)|HumanResources.vEmployee]]
 
 
|- valign="top"
 
| Select
 
| View
 
| [[Person.vStateProvinceCountryRegion_(view)|Person.vStateProvinceCountryRegion]]
 
 
|- valign="top"
 
| Select
 
| View
 
| [[Purchasing.vVendor_(view)|Purchasing.vVendor]]
 
 
|- valign="top"
 
| Select
 
| View
 
| [[Sales.vIndividualCustomer_(view)|Sales.vIndividualCustomer]]
 
 
|- valign="top"
 
| Select
 
| View
 
| [[Sales.vSalesPerson_(view)|Sales.vSalesPerson]]
 
 
|- valign="top"
 
| Select
 
| View
 
| [[Sales.vStoreWithDemographics_(view)|Sales.vStoreWithDemographics]]
 
 
|}
 
 
 
== automatically generated ==
 
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|-
 
| '''Table
 
| Person.StateProvince
 
|- valign="top"
 
| '''Description
 
| State and province lookup table.
 
|-
 
|}
 
 
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Column
 
| '''Data Type
 
| '''Nullable
 
| '''Default
 
| '''Description / PK / Index
 
 
|- valign="top"
 
| StateProvinceID
 
| int
 
| not null
 
 
|  
 
|  
| Primary key for StateProvince records.<br />PK_StateProvince_StateProvinceID
 
|- valign="top"
 
| StateProvinceCode
 
| nchar(3)
 
| not null
 
|
 
| ISO standard state or province code.<br />AK_StateProvince_StateProvinceCode_CountryRegionCode
 
|- valign="top"
 
| CountryRegionCode
 
| nvarchar(3)
 
| not null
 
 
|  
 
|  
| ISO standard country or region code. Foreign key to CountryRegion.CountryRegionCode. <br />AK_StateProvince_StateProvinceCode_CountryRegionCode
 
|- valign="top"
 
| IsOnlyStateProvinceFlag
 
| Flag
 
| not null
 
| (1)
 
| 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode.<br />
 
|- valign="top"
 
| Name
 
| Name
 
| not null
 
|
 
| State or province description.<br />AK_StateProvince_Name
 
|- valign="top"
 
| TerritoryID
 
| int
 
| not null
 
|
 
| ID of the territory in which the state or province is located. Foreign key to SalesTerritory.SalesTerritoryID.<br />
 
|- valign="top"
 
| rowguid
 
| uniqueidentifier
 
| not null
 
| (NEWID())
 
| ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.<br />AK_StateProvince_rowguid
 
|- valign="top"
 
| ModifiedDate
 
| datetime
 
| not null
 
| (GETDATE())
 
| Date and time the record was last updated.<br />
 
 
|}
 
|}
  
Line 302: Line 109:
 
| StateProvinceID
 
| StateProvinceID
 
| StateProvinceID
 
| StateProvinceID
|}
 
 
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Dependency Type
 
| '''Object Type
 
| '''Referenced Object
 
 
|-
 
| Data Type
 
| Type
 
| [[dbo.Flag_(type)|dbo.Flag]]
 
 
|-
 
| Data Type
 
| Type
 
| [[dbo.Name_(type)|dbo.Name]]
 
 
|-
 
| Schema
 
| Schema
 
| [[Person_(schema)|Person]]
 
 
|}
 
 
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Reference Type
 
| '''Object Type
 
| '''Referencing Object
 
 
|-
 
| Select
 
| View
 
| [[HumanResources.vEmployee_(view)|HumanResources.vEmployee]]
 
 
|-
 
| Select
 
| View
 
| [[Person.vStateProvinceCountryRegion_(view)|Person.vStateProvinceCountryRegion]]
 
 
|-
 
| Select
 
| View
 
| [[Purchasing.vVendor_(view)|Purchasing.vVendor]]
 
 
|-
 
| Select
 
| View
 
| [[Sales.vIndividualCustomer_(view)|Sales.vIndividualCustomer]]
 
 
|-
 
| Select
 
| View
 
| [[Sales.vSalesPerson_(view)|Sales.vSalesPerson]]
 
 
|-
 
| Select
 
| View
 
| [[Sales.vStoreWithDemographics_(view)|Sales.vStoreWithDemographics]]
 
 
 
|}
 
|}

Please note that all contributions to dbscript Online Help may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Project:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)