Sales CustomerAddress (table)

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