Difference between revisions of "Person.Address (table)"
Line 12: | Line 12: | ||
+ | === 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 18: | Line 19: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | '''Description | + | | '''Description |
|- valign="top" | |- valign="top" | ||
Line 25: | Line 26: | ||
| not null | | not null | ||
| | | | ||
− | | Primary key for Address records. | + | | Primary key for Address records. |
|- valign="top" | |- valign="top" | ||
| AddressLine1 | | AddressLine1 | ||
Line 31: | Line 32: | ||
| not null | | not null | ||
| | | | ||
− | | First street address line. | + | | First street address line. |
|- valign="top" | |- valign="top" | ||
| AddressLine2 | | AddressLine2 | ||
Line 37: | Line 38: | ||
| null | | null | ||
| | | | ||
− | | Second street address line. | + | | Second street address line. |
|- valign="top" | |- valign="top" | ||
| City | | City | ||
Line 43: | Line 44: | ||
| not null | | not null | ||
| | | | ||
− | | Name of the city. | + | | Name of the city. |
|- valign="top" | |- valign="top" | ||
| StateProvinceID | | StateProvinceID | ||
Line 49: | Line 50: | ||
| not null | | not null | ||
| | | | ||
− | | Unique identification number for the state or province. Foreign key to StateProvince table. | + | | Unique identification number for the state or province. Foreign key to StateProvince table. |
|- valign="top" | |- valign="top" | ||
| PostalCode | | PostalCode | ||
Line 55: | Line 56: | ||
| not null | | not null | ||
| | | | ||
− | | Postal code for the street address. | + | | Postal code for the street address. |
|- valign="top" | |- valign="top" | ||
| rowguid | | rowguid | ||
Line 61: | Line 62: | ||
| 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. |
|- valign="top" | |- valign="top" | ||
| ModifiedDate | | ModifiedDate | ||
Line 67: | Line 68: | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
− | | Date and time the record was last updated. | + | | 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 | ||
+ | |- | ||
+ | | PK_Address_AddressID | ||
+ | | AddressID | ||
+ | |} | ||
+ | === Indexes === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Index | ||
+ | | '''Type | ||
+ | | '''Columns | ||
+ | |||
+ | |- | ||
+ | | AK_Address_rowguid | ||
+ | | Unique | ||
+ | | rowguid | ||
+ | |- | ||
+ | | IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode | ||
+ | | Unique | ||
+ | | AddressLine1, AddressLine2, City, StateProvinceID, PostalCode | ||
+ | |- | ||
+ | | IX_Address_StateProvinceID | ||
+ | | | ||
+ | | StateProvinceID | ||
+ | |} | ||
+ | === Foreign Keys === | ||
{| 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 84: | Line 115: | ||
|} | |} | ||
− | + | === Detail Tables === | |
{| 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 113: | Line 144: | ||
|} | |} | ||
+ | === References === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Dependency Type | ||
+ | | '''Object Type | ||
+ | | '''Referenced Object | ||
+ | |||
+ | |- | ||
+ | | Schema | ||
+ | | Schema | ||
+ | | [[Person_(schema)|Person]] | ||
+ | |||
+ | |} | ||
+ | === Dependencies === | ||
{| 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 146: | Line 191: | ||
|} | |} | ||
− | |||
Revision as of 23:06, 2 February 2010
Contents
wikibot
Table | Person.Address |
Description | Street address information for customers, employees, and vendors. |
Columns
Column | Data Type | Nullable | Default | Description |
AddressID | int | not null | Primary key for Address records. | |
AddressLine1 | nvarchar(60) | not null | First street address line. | |
AddressLine2 | nvarchar(60) | null | Second street address line. | |
City | nvarchar(30) | not null | Name of the city. | |
StateProvinceID | int | not null | Unique identification number for the state or province. Foreign key to StateProvince table. | |
PostalCode | nvarchar(15) | not null | Postal code for the street address. | |
rowguid | uniqueidentifier | not null | (newid()) | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. |
ModifiedDate | datetime | not null | (getdate()) | Date and time the record was last updated. |
Primary Key
Primary Key | Columns |
PK_Address_AddressID | AddressID |
Indexes
Index | Type | Columns |
AK_Address_rowguid | Unique | rowguid |
IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode | Unique | AddressLine1, AddressLine2, City, StateProvinceID, PostalCode |
IX_Address_StateProvinceID | StateProvinceID |
Foreign Keys
Relation | Column | Referenced Column |
Person.StateProvince | StateProvinceID | StateProvinceID |
Detail Tables
Detail Table | Column | Referencing Column |
Sales.CustomerAddress | AddressID | AddressID |
HumanResources.EmployeeAddress | AddressID | AddressID |
Sales.SalesOrderHeader | AddressID | BillToAddressID |
Sales.SalesOrderHeader | AddressID | ShipToAddressID |
Purchasing.VendorAddress | AddressID | AddressID |
References
Dependency Type | Object Type | Referenced Object |
Schema | Schema | Person |
Dependencies
Reference Type | Object Type | Referencing Object |
Select | View | HumanResources.vEmployee |
Select | View | Purchasing.vVendor |
Select | View | Sales.vIndividualCustomer |
Select | View | Sales.vSalesPerson |
Select | View | Sales.vStoreWithDemographics |
automatically generated
Table | Person.Address |
Description | Street address information for customers, employees, and vendors. |
Column | Data Type | Nullable | Default | Description / PK / Index |
AddressID | int | not null | Primary key for Address records. PK_Address_AddressID | |
AddressLine1 | nvarchar(60) | not null | First street address line. IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode | |
AddressLine2 | nvarchar(60) | null | Second street address line. IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode | |
City | nvarchar(30) | not null | Name of the city. IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode | |
StateProvinceID | int | not null | Unique identification number for the state or province. Foreign key to StateProvince table. IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCodeIX_Address_StateProvinceID | |
PostalCode | nvarchar(15) | not null | Postal code for the street address. IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode | |
rowguid | uniqueidentifier | not null | (NEWID()) | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. AK_Address_rowguid |
ModifiedDate | datetime | not null | (GETDATE()) | Date and time the record was last updated. |
Relation | Column | Referenced Column |
Person.StateProvince | StateProvinceID | StateProvinceID |
Detail Table | Column | Referencing Column |
Sales.CustomerAddress | AddressID | AddressID |
HumanResources.EmployeeAddress | AddressID | AddressID |
Sales.SalesOrderHeader | AddressID | BillToAddressID |
Sales.SalesOrderHeader | AddressID | ShipToAddressID |
Purchasing.VendorAddress | AddressID | AddressID |
Dependency Type | Object Type | Referenced Object |
Schema | Schema | Person |
Reference Type | Object Type | Referencing Object |
Select | View | HumanResources.vEmployee |
Select | View | Purchasing.vVendor |
Select | View | Sales.vIndividualCustomer |
Select | View | Sales.vSalesPerson |
Select | View | Sales.vStoreWithDemographics |