Editing Person.StateProvince (table)
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" | ||
− | |- | + | |- |
| '''Table | | '''Table | ||
| Person.StateProvince | | Person.StateProvince | ||
Line 8: | Line 8: | ||
| '''Description | | '''Description | ||
| State and province lookup table. | | State and province lookup table. | ||
+ | |- | ||
|} | |} | ||
− | + | ||
{| 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 18: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | '''Description | + | | '''Description / PK / Index |
− | + | ||
|- valign="top" | |- valign="top" | ||
| StateProvinceID | | StateProvinceID | ||
Line 24: | Line 25: | ||
| not null | | not null | ||
| | | | ||
− | | Primary key for StateProvince records. | + | | Primary key for StateProvince records.<br />PK_StateProvince_StateProvinceID |
|- valign="top" | |- valign="top" | ||
| StateProvinceCode | | StateProvinceCode | ||
Line 30: | Line 31: | ||
| not null | | not null | ||
| | | | ||
− | | ISO standard state or province code. | + | | ISO standard state or province code.<br />AK_StateProvince_StateProvinceCode_CountryRegionCode |
|- valign="top" | |- valign="top" | ||
| CountryRegionCode | | CountryRegionCode | ||
Line 36: | Line 37: | ||
| not null | | not null | ||
| | | | ||
− | | ISO standard country or region code. Foreign key to CountryRegion.CountryRegionCode. | + | | ISO standard country or region code. Foreign key to CountryRegion.CountryRegionCode. <br />AK_StateProvince_StateProvinceCode_CountryRegionCode |
|- valign="top" | |- valign="top" | ||
| IsOnlyStateProvinceFlag | | IsOnlyStateProvinceFlag | ||
Line 42: | Line 43: | ||
| not null | | not null | ||
| ((1)) | | ((1)) | ||
− | | 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. | + | | 0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode.<br /> |
|- valign="top" | |- valign="top" | ||
| Name | | Name | ||
Line 48: | Line 49: | ||
| not null | | not null | ||
| | | | ||
− | | State or province description. | + | | State or province description.<br />AK_StateProvince_Name |
|- valign="top" | |- valign="top" | ||
| TerritoryID | | TerritoryID | ||
Line 54: | Line 55: | ||
| not null | | not null | ||
| | | | ||
− | | ID of the territory in which the state or province is located. Foreign key to SalesTerritory.SalesTerritoryID. | + | | ID of the territory in which the state or province is located. Foreign key to SalesTerritory.SalesTerritoryID.<br /> |
|- valign="top" | |- valign="top" | ||
| rowguid | | rowguid | ||
Line 60: | Line 61: | ||
| not null | | not null | ||
| (newid()) | | (newid()) | ||
− | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. | + | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.<br />AK_StateProvince_rowguid |
|- valign="top" | |- valign="top" | ||
| ModifiedDate | | ModifiedDate | ||
Line 66: | Line 67: | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
− | | Date and time the record was last updated. | + | | Date and time the record was last updated.<br /> |
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{| 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 106: | Line 77: | ||
| '''Column | | '''Column | ||
| '''Referenced Column | | '''Referenced Column | ||
− | + | ||
− | |- | + | |- |
| [[Person.CountryRegion_(table)|Person.CountryRegion]] | | [[Person.CountryRegion_(table)|Person.CountryRegion]] | ||
| CountryRegionCode | | CountryRegionCode | ||
| CountryRegionCode | | CountryRegionCode | ||
− | |- | + | |- |
| [[Sales.SalesTerritory_(table)|Sales.SalesTerritory]] | | [[Sales.SalesTerritory_(table)|Sales.SalesTerritory]] | ||
| TerritoryID | | TerritoryID | ||
Line 117: | Line 88: | ||
|} | |} | ||
− | + | ||
{| 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 123: | Line 94: | ||
| '''Column | | '''Column | ||
| '''Referencing Column | | '''Referencing Column | ||
− | + | ||
− | |- | + | |- |
| [[Person.Address_(table)|Person.Address]] | | [[Person.Address_(table)|Person.Address]] | ||
| StateProvinceID | | StateProvinceID | ||
| StateProvinceID | | StateProvinceID | ||
− | |- | + | |- |
| [[Sales.SalesTaxRate_(table)|Sales.SalesTaxRate]] | | [[Sales.SalesTaxRate_(table)|Sales.SalesTaxRate]] | ||
| StateProvinceID | | StateProvinceID | ||
Line 134: | Line 105: | ||
|} | |} | ||
− | + | ||
{| 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 141: | Line 112: | ||
| '''Referenced Object | | '''Referenced Object | ||
− | |- | + | |- |
| Data Type | | Data Type | ||
| Type | | Type | ||
| [[dbo.Flag_(type)|dbo.Flag]] | | [[dbo.Flag_(type)|dbo.Flag]] | ||
− | |- | + | |- |
| Data Type | | Data Type | ||
| Type | | Type | ||
| [[dbo.Name_(type)|dbo.Name]] | | [[dbo.Name_(type)|dbo.Name]] | ||
− | | | + | |} |
− | |||
− | |||
− | |||
− | |||
− | |||
{| 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 165: | Line 131: | ||
| '''Referencing Object | | '''Referencing Object | ||
− | |- | + | |- |
| Select | | Select | ||
| View | | View | ||
| [[HumanResources.vEmployee_(view)|HumanResources.vEmployee]] | | [[HumanResources.vEmployee_(view)|HumanResources.vEmployee]] | ||
− | |- | + | |- |
| Select | | Select | ||
| View | | View | ||
| [[Person.vStateProvinceCountryRegion_(view)|Person.vStateProvinceCountryRegion]] | | [[Person.vStateProvinceCountryRegion_(view)|Person.vStateProvinceCountryRegion]] | ||
− | |- | + | |- |
| Select | | Select | ||
| View | | View | ||
| [[Purchasing.vVendor_(view)|Purchasing.vVendor]] | | [[Purchasing.vVendor_(view)|Purchasing.vVendor]] | ||
− | |- | + | |- |
| Select | | Select | ||
| View | | View | ||
| [[Sales.vIndividualCustomer_(view)|Sales.vIndividualCustomer]] | | [[Sales.vIndividualCustomer_(view)|Sales.vIndividualCustomer]] | ||
− | |- | + | |- |
| Select | | Select | ||
| View | | View | ||
| [[Sales.vSalesPerson_(view)|Sales.vSalesPerson]] | | [[Sales.vSalesPerson_(view)|Sales.vSalesPerson]] | ||
− | |- | + | |- |
| Select | | Select | ||
| View | | View | ||
Line 196: | Line 162: | ||
|} | |} | ||
+ | |||