Difference between revisions of "Person.Address (table)"
(8 intermediate revisions by the same user not shown) | |||
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.Address | | Person.Address | ||
− | |- | + | |- valign="top" |
+ | | '''Description | ||
+ | | Street address information for customers, employees, and vendors. | ||
|} | |} | ||
− | + | === 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 15: | Line 17: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | ''' | + | | '''Description |
− | + | ||
− | + | |- valign="top" | |
− | |- | ||
| AddressID | | AddressID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Primary key for Address records. |
− | + | |- valign="top" | |
− | |- | ||
| AddressLine1 | | AddressLine1 | ||
| nvarchar(60) | | nvarchar(60) | ||
| not null | | not null | ||
| | | | ||
− | | | + | | First street address line. |
− | + | |- valign="top" | |
− | |- | ||
| AddressLine2 | | AddressLine2 | ||
| nvarchar(60) | | nvarchar(60) | ||
| null | | null | ||
| | | | ||
− | | | + | | Second street address line. |
− | + | |- valign="top" | |
− | |- | ||
| City | | City | ||
| nvarchar(30) | | nvarchar(30) | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Name of the city. |
− | + | |- valign="top" | |
− | |- | ||
| StateProvinceID | | StateProvinceID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Unique identification number for the state or province. Foreign key to StateProvince table. |
− | + | |- valign="top" | |
− | |- | ||
| PostalCode | | PostalCode | ||
| nvarchar(15) | | nvarchar(15) | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Postal code for the street address. |
− | + | |- 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" | |
− | |- | ||
| 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_Address_AddressID | ||
+ | | AddressID | ||
|} | |} | ||
+ | === Indexes === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Index | ||
+ | | '''Type | ||
+ | | '''Columns | ||
+ | |- valign="top" | ||
+ | | AK_Address_rowguid | ||
+ | | Unique | ||
+ | | rowguid | ||
+ | |- valign="top" | ||
+ | | IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode | ||
+ | | Unique | ||
+ | | AddressLine1, AddressLine2, City, StateProvinceID, PostalCode | ||
+ | |- valign="top" | ||
+ | | 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 83: | Line 106: | ||
| '''Column | | '''Column | ||
| '''Referenced Column | | '''Referenced Column | ||
− | + | ||
− | |- | + | |- valign="top" |
| [[Person.StateProvince_(table)|Person.StateProvince]] | | [[Person.StateProvince_(table)|Person.StateProvince]] | ||
| StateProvinceID | | StateProvinceID | ||
Line 90: | Line 113: | ||
|} | |} | ||
− | + | === 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 96: | Line 119: | ||
| '''Column | | '''Column | ||
| '''Referencing Column | | '''Referencing Column | ||
− | + | ||
− | |- | + | |- valign="top" |
| [[Sales.CustomerAddress_(table)|Sales.CustomerAddress]] | | [[Sales.CustomerAddress_(table)|Sales.CustomerAddress]] | ||
| AddressID | | AddressID | ||
| AddressID | | AddressID | ||
− | |- | + | |- valign="top" |
| [[HumanResources.EmployeeAddress_(table)|HumanResources.EmployeeAddress]] | | [[HumanResources.EmployeeAddress_(table)|HumanResources.EmployeeAddress]] | ||
| AddressID | | AddressID | ||
| AddressID | | AddressID | ||
− | |- | + | |- valign="top" |
| [[Sales.SalesOrderHeader_(table)|Sales.SalesOrderHeader]] | | [[Sales.SalesOrderHeader_(table)|Sales.SalesOrderHeader]] | ||
| AddressID | | AddressID | ||
| BillToAddressID | | BillToAddressID | ||
− | |- | + | |- valign="top" |
| [[Sales.SalesOrderHeader_(table)|Sales.SalesOrderHeader]] | | [[Sales.SalesOrderHeader_(table)|Sales.SalesOrderHeader]] | ||
| AddressID | | AddressID | ||
| ShipToAddressID | | ShipToAddressID | ||
− | |- | + | |- valign="top" |
| [[Purchasing.VendorAddress_(table)|Purchasing.VendorAddress]] | | [[Purchasing.VendorAddress_(table)|Purchasing.VendorAddress]] | ||
| AddressID | | AddressID | ||
| AddressID | | AddressID | ||
|} | |} | ||
+ | |||
+ | === References === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Dependency Type | ||
+ | | '''Object Type | ||
+ | | '''Referenced Object | ||
+ | |||
+ | |- 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 | ||
+ | | [[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 == | == automatically generated == | ||
Line 124: | Line 197: | ||
| '''Table | | '''Table | ||
| Person.Address | | Person.Address | ||
− | |- | + | |- valign="top" |
− | |||
| '''Description | | '''Description | ||
| Street address information for customers, employees, and vendors. | | Street address information for customers, employees, and vendors. | ||
|- | |- | ||
− | |||
|} | |} | ||
Line 141: | Line 212: | ||
| '''Description / PK / Index | | '''Description / PK / Index | ||
− | |- | + | |- valign="top" |
| AddressID | | AddressID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | Primary key for Address records.PK_Address_AddressID | + | | Primary key for Address records.<br />PK_Address_AddressID |
− | |- | + | |- valign="top" |
| AddressLine1 | | AddressLine1 | ||
| nvarchar(60) | | nvarchar(60) | ||
| not null | | not null | ||
| | | | ||
− | | First street address line.IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode | + | | First street address line.<br />IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode |
− | |- | + | |- valign="top" |
| AddressLine2 | | AddressLine2 | ||
| nvarchar(60) | | nvarchar(60) | ||
| null | | null | ||
| | | | ||
− | | Second street address line.IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode | + | | Second street address line.<br />IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode |
− | |- | + | |- valign="top" |
| City | | City | ||
| nvarchar(30) | | nvarchar(30) | ||
| not null | | not null | ||
| | | | ||
− | | Name of the city.IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode | + | | Name of the city.<br />IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode |
− | |- | + | |- valign="top" |
| StateProvinceID | | StateProvinceID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | Unique identification number for the state or province. Foreign key to StateProvince table.IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCodeIX_Address_StateProvinceID | + | | Unique identification number for the state or province. Foreign key to StateProvince table.<br />IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCodeIX_Address_StateProvinceID |
− | |- | + | |- valign="top" |
| PostalCode | | PostalCode | ||
| nvarchar(15) | | nvarchar(15) | ||
| not null | | not null | ||
| | | | ||
− | | Postal code for the street address.IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode | + | | Postal code for the street address.<br />IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode |
− | |- | + | |- 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.AK_Address_rowguid | + | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.<br />AK_Address_rowguid |
− | |- | + | |- valign="top" |
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (GETDATE()) | | (GETDATE()) | ||
− | | Date and time the record was last updated. | + | | Date and time the record was last updated.<br /> |
|} | |} | ||
Line 237: | Line 308: | ||
{| 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" | ||
− | | ''' | + | | '''Dependency Type |
| '''Object Type | | '''Object Type | ||
+ | | '''Referenced Object | ||
+ | |||
+ | |- | ||
+ | | Schema | ||
+ | | Schema | ||
+ | | [[Person_(schema)|Person]] | ||
+ | |||
+ | |} | ||
+ | |||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
| '''Reference Type | | '''Reference Type | ||
− | + | | '''Object Type | |
+ | | '''Referencing Object | ||
+ | |||
|- | |- | ||
+ | | Select | ||
+ | | View | ||
| [[HumanResources.vEmployee_(view)|HumanResources.vEmployee]] | | [[HumanResources.vEmployee_(view)|HumanResources.vEmployee]] | ||
+ | |||
+ | |- | ||
+ | | Select | ||
| View | | View | ||
+ | | [[Purchasing.vVendor_(view)|Purchasing.vVendor]] | ||
+ | |||
+ | |- | ||
| Select | | Select | ||
+ | | View | ||
+ | | [[Sales.vIndividualCustomer_(view)|Sales.vIndividualCustomer]] | ||
+ | |||
|- | |- | ||
− | | | + | | Select |
| View | | View | ||
− | | | + | | [[Sales.vSalesPerson_(view)|Sales.vSalesPerson]] |
+ | |||
|- | |- | ||
− | |||
− | |||
| Select | | Select | ||
− | |||
− | |||
| View | | View | ||
− | |||
− | |||
| [[Sales.vStoreWithDemographics_(view)|Sales.vStoreWithDemographics]] | | [[Sales.vStoreWithDemographics_(view)|Sales.vStoreWithDemographics]] | ||
− | + | ||
− | |||
|} | |} |
Latest revision as of 23:16, 23 June 2010
Contents
wikibot[edit]
Table | Person.Address |
Description | Street address information for customers, employees, and vendors. |
Columns[edit]
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[edit]
Primary Key | Columns |
PK_Address_AddressID | AddressID |
Indexes[edit]
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[edit]
Relation | Column | Referenced Column |
Person.StateProvince | StateProvinceID | StateProvinceID |
Detail Tables[edit]
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[edit]
Dependency Type | Object Type | Referenced Object |
Schema | Schema | Person |
Dependencies[edit]
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[edit]
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 |