Difference between revisions of "Person.Address (table)"

From dbscript Online Help
Jump to: navigation, search
Line 146: Line 146:
 
| not null
 
| not null
 
|  
 
|  
| Primary key for Address records.PK_Address_AddressID
+
| Primary key for Address records.<br />PK_Address_AddressID
 
|- valign="top"
 
|- valign="top"
 
| AddressLine1
 
| AddressLine1
Line 152: Line 152:
 
| 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"
 
|- valign="top"
 
| AddressLine2
 
| AddressLine2
Line 158: Line 158:
 
| 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"
 
|- valign="top"
 
| City
 
| City
Line 164: Line 164:
 
| 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"
 
|- valign="top"
 
| StateProvinceID
 
| StateProvinceID
Line 170: Line 170:
 
| 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"
 
|- valign="top"
 
| PostalCode
 
| PostalCode
Line 176: Line 176:
 
| 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"
 
|- valign="top"
 
| rowguid
 
| rowguid
Line 182: Line 182:
 
| 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"
 
|- valign="top"
 
| ModifiedDate
 
| ModifiedDate
Line 188: Line 188:
 
| not null
 
| not null
 
| (GETDATE())
 
| (GETDATE())
| Date and time the record was last updated.
+
| Date and time the record was last updated.<br />
 
|}
 
|}
  

Revision as of 00:09, 27 November 2009

wikibot

Table Person.Address


Column Data Type Nullable Default PK Index
AddressID int not null PK_Address_AddressID
AddressLine1 nvarchar(60) not null IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode
AddressLine2 nvarchar(60) null IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode
City nvarchar(30) not null IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode
StateProvinceID int not null IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCodeIX_Address_StateProvinceID
PostalCode nvarchar(15) not null IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode
rowguid uniqueidentifier not null (newid()) AK_Address_rowguid
ModifiedDate datetime not null (getdate())


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

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


Referencing Object Object Type Reference Type
HumanResources.vEmployee View Select
Purchasing.vVendor View Select
Sales.vIndividualCustomer View Select
Sales.vSalesPerson View Select
Sales.vStoreWithDemographics View Select