ScrewTurn Wiki

Edit

wikibot

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

Edit

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.

Edit

Primary Key

Primary KeyColumns
PK_CustomerAddress_CustomerID_AddressIDCustomerID, AddressID

Edit

Indexes

IndexTypeColumns
AK_CustomerAddress_rowguidUniquerowguid

Edit

Foreign Keys

RelationColumnReferenced Column
Person.AddressAddressIDAddressID
Person.AddressTypeAddressTypeIDAddressTypeID
Sales.CustomerCustomerIDCustomerID

Edit

References

Dependency TypeObject TypeReferenced Object
SchemaSchemaSales

Edit

Dependencies

Reference TypeObject TypeReferencing Object
SelectViewSales.vIndividualCustomer
SelectViewSales.vStoreWithDemographics

Edit

automatically generated

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

ColumnData TypeNullableDefaultDescription / PK / Index
CustomerIDintnot null Primary key. Foreign key to Customer.CustomerID.
PK_CustomerAddress_CustomerID_AddressID
AddressIDintnot null Primary key. Foreign key to Address.AddressID.
PK_CustomerAddress_CustomerID_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.
AK_CustomerAddress_rowguid
ModifiedDatedatetimenot null(GETDATE())Date and time the record was last updated.



RelationColumnReferenced Column
Person.AddressAddressIDAddressID
Person.AddressTypeAddressTypeIDAddressTypeID
Sales.CustomerCustomerIDCustomerID

Dependency TypeObject TypeReferenced Object
SchemaSchemaSales

Reference TypeObject TypeReferencing Object
SelectViewSales.vIndividualCustomer
SelectViewSales.vStoreWithDemographics

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