Welcome Guest, you are in: Login

devio dbscript ScrewTurn Wiki

RSS RSS

Navigation





Search the wiki
»

PoweredBy

Page History: Sales CustomerAddress (table)

Compare Page Revisions



« Older Revision - Back to Page History - Current Revision


Page Revision: 2010/06/24 01:10


wikibot

TableSales.CustomerAddress
DescriptionCross-reference table mapping customers to their address(es).

Columns

ColumnData TypeNullableDefaultDescription
CustomerIDintnot null Primary key. Foreign key to Customer.CustomerID.
AddressIDintnot null Primary key. Foreign key to Address.AddressID.
AddressTypeIDintnot null Address type. Foreign key to AddressType.AddressTypeID.
rowguiduniqueidentifiernot null(newid())ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.
ModifiedDatedatetimenot null(getdate())Date and time the record was last updated.

Primary Key

Primary KeyColumns
PK_CustomerAddress_CustomerID_AddressIDCustomerID, AddressID

Indexes

IndexTypeColumns
AK_CustomerAddress_rowguidUniquerowguid

Foreign Keys

RelationColumnReferenced Column
Person.AddressAddressIDAddressID
Person.AddressTypeAddressTypeIDAddressTypeID
Sales.CustomerCustomerIDCustomerID

References

Dependency TypeObject TypeReferenced Object
SchemaSchemaSales

Dependencies

Reference TypeObject TypeReferencing Object
SelectViewSales.vIndividualCustomer
SelectViewSales.vStoreWithDemographics

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam.