Editing Person.Address (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.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 17: Line 15:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''Description
+
| '''PK
 
+
| '''Index
|- valign="top"
+
 +
|-
 
| AddressID
 
| AddressID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| Primary key for Address records.
+
| PK_Address_AddressID
|- valign="top"
+
|
 +
|-
 
| AddressLine1
 
| AddressLine1
 
| nvarchar(60)
 
| nvarchar(60)
 
| not null
 
| not null
 
|  
 
|  
| First street address line.
+
|  
|- valign="top"
+
| IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode
 +
|-
 
| AddressLine2
 
| AddressLine2
 
| nvarchar(60)
 
| nvarchar(60)
 
| null
 
| null
 
|  
 
|  
| Second street address line.
+
|  
|- valign="top"
+
| IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode
 +
|-
 
| City
 
| City
 
| nvarchar(30)
 
| nvarchar(30)
 
| not null
 
| not null
 
|  
 
|  
| Name of the city.
+
|  
|- valign="top"
+
| IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode
 +
|-
 
| StateProvinceID
 
| StateProvinceID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| Unique identification number for the state or province. Foreign key to StateProvince table.
+
|  
|- valign="top"
+
| IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCodeIX_Address_StateProvinceID
 +
|-
 
| PostalCode
 
| PostalCode
 
| nvarchar(15)
 
| nvarchar(15)
 
| not null
 
| not null
 
|  
 
|  
| Postal code for the street address.
+
|  
|- valign="top"
+
| IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode
 +
|-
 
| 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_Address_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_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 106: Line 83:
 
| '''Column
 
| '''Column
 
| '''Referenced Column
 
| '''Referenced Column
 
+
|- valign="top"
+
|-
 
| [[Person.StateProvince_(table)|Person.StateProvince]]
 
| [[Person.StateProvince_(table)|Person.StateProvince]]
 
| StateProvinceID
 
| StateProvinceID
Line 113: Line 90:
 
|}
 
|}
  
=== 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 119: Line 96:
 
| '''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 198: Line 125:
 
| Person.Address
 
| Person.Address
 
|- valign="top"
 
|- valign="top"
 +
 
| '''Description
 
| '''Description
 
| Street address information for customers, employees, and vendors.
 
| Street address information for customers, employees, and vendors.
 
|-
 
|-
 +
 
|}
 
|}
  
Line 308: Line 237:
 
{| 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
+
| '''Referencing Object
 
| '''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
 
 
 
 
|-
 
|-
 +
| [[HumanResources.vEmployee_(view)|HumanResources.vEmployee]]
 +
| View
 
| Select
 
| Select
 +
|-
 +
| [[Purchasing.vVendor_(view)|Purchasing.vVendor]]
 
| View
 
| View
| [[HumanResources.vEmployee_(view)|HumanResources.vEmployee]]
+
| Select
 
 
 
|-
 
|-
 +
| [[Sales.vIndividualCustomer_(view)|Sales.vIndividualCustomer]]
 +
| View
 
| Select
 
| Select
 +
|-
 +
| [[Sales.vSalesPerson_(view)|Sales.vSalesPerson]]
 
| View
 
| View
| [[Purchasing.vVendor_(view)|Purchasing.vVendor]]
 
 
|-
 
 
| Select
 
| Select
| View
 
| [[Sales.vIndividualCustomer_(view)|Sales.vIndividualCustomer]]
 
 
 
|-
 
|-
| Select
+
| [[Sales.vStoreWithDemographics_(view)|Sales.vStoreWithDemographics]]
 
| View
 
| View
| [[Sales.vSalesPerson_(view)|Sales.vSalesPerson]]
 
 
|-
 
 
| Select
 
| 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)