Difference between revisions of "Sales.CustomerAddress (table)"
Line 76: | Line 76: | ||
| CustomerID | | CustomerID | ||
|} | |} | ||
− | |||
== automatically generated == | == automatically generated == | ||
Line 98: | Line 97: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | '''Description | + | | '''Description / PK / Index |
− | |||
− | |- | + | |- valign="top" |
| CustomerID | | CustomerID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | Primary key. Foreign key to Customer.CustomerID. | + | | Primary key. Foreign key to Customer.CustomerID.PK_CustomerAddress_CustomerID_AddressID |
− | + | |- valign="top" | |
− | |- | ||
| AddressID | | AddressID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | Primary key. Foreign key to Address.AddressID. | + | | Primary key. Foreign key to Address.AddressID.PK_CustomerAddress_CustomerID_AddressID |
− | + | |- valign="top" | |
− | |- | ||
| AddressTypeID | | AddressTypeID | ||
| int | | int | ||
Line 121: | Line 117: | ||
| | | | ||
| Address type. Foreign key to AddressType.AddressTypeID. | | Address type. Foreign key to AddressType.AddressTypeID. | ||
− | + | |- 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. | + | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.AK_CustomerAddress_rowguid |
− | + | |- valign="top" | |
− | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
Line 135: | Line 129: | ||
| (GETDATE()) | | (GETDATE()) | ||
| Date and time the record was last updated. | | Date and time the record was last updated. | ||
− | |||
|} | |} | ||
Line 158: | Line 151: | ||
| CustomerID | | CustomerID | ||
| CustomerID | | CustomerID | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Referencing Object | ||
+ | | '''Object Type | ||
+ | | '''Reference Type | ||
+ | |||
+ | |- | ||
+ | | [[Sales.vIndividualCustomer_(view)|Sales.vIndividualCustomer]] | ||
+ | | View | ||
+ | | Select | ||
+ | |- | ||
+ | | [[Sales.vStoreWithDemographics_(view)|Sales.vStoreWithDemographics]] | ||
+ | | View | ||
+ | | Select | ||
|} | |} |
Revision as of 23:57, 26 November 2009
wikibot
Table | Sales.CustomerAddress |
Column | Data Type | Nullable | Default | PK | Index |
CustomerID | int | not null | PK_CustomerAddress_CustomerID_AddressID | ||
AddressID | int | not null | PK_CustomerAddress_CustomerID_AddressID | ||
AddressTypeID | int | not null | |||
rowguid | uniqueidentifier | not null | (newid()) | AK_CustomerAddress_rowguid | |
ModifiedDate | datetime | not null | (getdate()) |
Relation | Column | Referenced Column |
Person.Address | AddressID | AddressID |
Person.AddressType | AddressTypeID | AddressTypeID |
Sales.Customer | CustomerID | CustomerID |
automatically generated
Table | Sales.CustomerAddress |
Description | Cross-reference table mapping customers to their address(es). |
Column | Data Type | Nullable | Default | Description / PK / Index |
CustomerID | int | not null | Primary key. Foreign key to Customer.CustomerID.PK_CustomerAddress_CustomerID_AddressID | |
AddressID | int | not null | Primary key. Foreign key to Address.AddressID.PK_CustomerAddress_CustomerID_AddressID | |
AddressTypeID | int | not null | Address type. Foreign key to AddressType.AddressTypeID. | |
rowguid | uniqueidentifier | not null | (NEWID()) | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.AK_CustomerAddress_rowguid |
ModifiedDate | datetime | not null | (GETDATE()) | Date and time the record was last updated. |
Relation | Column | Referenced Column |
Person.Address | AddressID | AddressID |
Person.AddressType | AddressTypeID | AddressTypeID |
Sales.Customer | CustomerID | CustomerID |
Referencing Object | Object Type | Reference Type |
Sales.vIndividualCustomer | View | Select |
Sales.vStoreWithDemographics | View | Select |