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

From dbscript Online Help
Jump to: navigation, search
 
(3 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.AddressType
 
| Person.AddressType
Line 8: Line 8:
 
| '''Description
 
| '''Description
 
| Types of addresses stored in the Address table.  
 
| Types of addresses stored in the Address table.  
|-
 
 
|}
 
|}
  
 
+
=== 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 17:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''Description / PK / Index
+
| '''Description
+
 
 
|- valign="top"
 
|- valign="top"
 
| AddressTypeID
 
| AddressTypeID
Line 25: Line 24:
 
| not null
 
| not null
 
|  
 
|  
| Primary key for AddressType records.<br />PK_AddressType_AddressTypeID
+
| Primary key for AddressType records.
 
|- valign="top"
 
|- valign="top"
 
| Name
 
| Name
Line 31: Line 30:
 
| not null
 
| not null
 
|  
 
|  
| Address type description. For example, Billing, Home, or Shipping.<br />AK_AddressType_Name
+
| Address type description. For example, Billing, Home, or Shipping.
 
|- valign="top"
 
|- valign="top"
 
| rowguid
 
| rowguid
Line 37: Line 36:
 
| not null
 
| not null
 
| (newid())
 
| (newid())
| ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.<br />AK_AddressType_rowguid
+
| ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.
 
|- valign="top"
 
|- valign="top"
 
| ModifiedDate
 
| ModifiedDate
Line 43: Line 42:
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
| Date and time the record was last updated.<br />
+
| 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_AddressType_AddressTypeID
 +
| AddressTypeID
 +
|}
 +
 +
=== Indexes ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Index
 +
| '''Type
 +
| '''Columns
  
 +
|- valign="top"
 +
| AK_AddressType_Name
 +
| Unique
 +
| Name
 +
|- valign="top"
 +
| AK_AddressType_rowguid
 +
| Unique
 +
| rowguid
 +
|}
  
 +
=== 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 53: Line 78:
 
| '''Column
 
| '''Column
 
| '''Referencing Column
 
| '''Referencing Column
+
 
|-
+
|- valign="top"
 
| [[Sales.CustomerAddress_(table)|Sales.CustomerAddress]]
 
| [[Sales.CustomerAddress_(table)|Sales.CustomerAddress]]
 
| AddressTypeID
 
| AddressTypeID
 
| AddressTypeID
 
| AddressTypeID
|-
+
|- valign="top"
 
| [[Purchasing.VendorAddress_(table)|Purchasing.VendorAddress]]
 
| [[Purchasing.VendorAddress_(table)|Purchasing.VendorAddress]]
 
| AddressTypeID
 
| AddressTypeID
Line 64: Line 89:
 
|}
 
|}
  
 
+
=== References ===
 
{| 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 71: Line 96:
 
| '''Referenced Object
 
| '''Referenced Object
  
|-
+
|- valign="top"
 
| Data Type
 
| Data Type
 
| Type
 
| Type
 
| [[dbo.Name_(type)|dbo.Name]]
 
| [[dbo.Name_(type)|dbo.Name]]
 +
 +
|- valign="top"
 +
| 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 85: Line 115:
 
| '''Referencing Object
 
| '''Referencing Object
  
|-
+
|- valign="top"
 
| Select
 
| Select
 
| View
 
| View
 
| [[Sales.vIndividualCustomer_(view)|Sales.vIndividualCustomer]]
 
| [[Sales.vIndividualCustomer_(view)|Sales.vIndividualCustomer]]
  
|-
+
|- valign="top"
 
| Select
 
| Select
 
| View
 
| View
Line 96: Line 126:
  
 
|}
 
|}
 +
 +
 
== wikivalues ==
 
== wikivalues ==
  
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
|-
+
|- valign="top"
 
| '''Table Values
 
| '''Table Values
 
| Person.AddressType
 
| Person.AddressType
|-
 
 
|}
 
|}
  
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
  
{| border="1" cellpadding="5" cellspacing="0"  style="border-collapse:collapse"
 
|- style="background:silver"
 
 
| '''AddressTypeID
 
| '''AddressTypeID
 
| '''Name
 
| '''Name
|-  
+
|- valign="top"
| 6
+
 
| Archive
+
| 6
|-  
+
| Archive
| 1
+
|- valign="top"
| Billing
+
 
|-  
+
| 1
| 2
+
| Billing
| Home
+
|- valign="top"
|-  
+
 
| 3
+
| 2
| Main Office
+
| Home
|-  
+
|- valign="top"
| 4
+
 
| Primary
+
| 3
|-  
+
| Main Office
| 5
+
|- valign="top"
| Shipping
+
 
 +
| 4
 +
| Primary
 +
|- valign="top"
 +
 
 +
| 5
 +
| Shipping
 
|}
 
|}
  

Latest revision as of 10:55, 27 August 2011

wikibot[edit]

Table Person.AddressType
Description Types of addresses stored in the Address table.

Columns[edit]

Column Data Type Nullable Default Description
AddressTypeID int not null Primary key for AddressType records.
Name dbo.Name not null Address type description. For example, Billing, Home, or Shipping.
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_AddressType_AddressTypeID AddressTypeID

Indexes[edit]

Index Type Columns
AK_AddressType_Name Unique Name
AK_AddressType_rowguid Unique rowguid

Detail Tables[edit]

Detail Table Column Referencing Column
Sales.CustomerAddress AddressTypeID AddressTypeID
Purchasing.VendorAddress AddressTypeID AddressTypeID

References[edit]

Dependency Type Object Type Referenced Object
Data Type Type dbo.Name
Schema Schema Person

Dependencies[edit]

Reference Type Object Type Referencing Object
Select View Sales.vIndividualCustomer
Select View Sales.vStoreWithDemographics


wikivalues[edit]

Table Values Person.AddressType
AddressTypeID Name
6 Archive
1 Billing
2 Home
3 Main Office
4 Primary
5 Shipping

automatically generated[edit]

Table Person.AddressType
Description Types of addresses stored in the Address table.


Column Data Type Nullable Default Description / PK / Index
AddressTypeID int not null Primary key for AddressType records.
PK_AddressType_AddressTypeID
Name Name not null Address type description. For example, Billing, Home, or Shipping.
AK_AddressType_Name
rowguid uniqueidentifier not null (NEWID()) ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.
AK_AddressType_rowguid
ModifiedDate datetime not null (GETDATE()) Date and time the record was last updated.


Detail Table Column Referencing Column
Sales.CustomerAddress AddressTypeID AddressTypeID
Purchasing.VendorAddress AddressTypeID AddressTypeID


Dependency Type Object Type Referenced Object
Data Type Type dbo.Name
Schema Schema Person


Reference Type Object Type Referencing Object
Select View Sales.vIndividualCustomer
Select View Sales.vStoreWithDemographics