ScrewTurn Wiki

Edit

wikibot

TableSales.StoreContact
DescriptionCross-reference table mapping stores and their employees.

Edit

Columns

ColumnData TypeNullableDefaultDescription
CustomerIDintnot null Store identification number. Foreign key to Customer.CustomerID.
ContactIDintnot null Contact (store employee) identification number. Foreign key to Contact.ContactID.
ContactTypeIDintnot null Contact type such as owner or purchasing agent. Foreign key to ContactType.ContactTypeID.
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_StoreContact_CustomerID_ContactIDCustomerID, ContactID

Edit

Indexes

IndexTypeColumns
AK_StoreContact_rowguidUniquerowguid
IX_StoreContact_ContactID ContactID
IX_StoreContact_ContactTypeID ContactTypeID

Edit

Foreign Keys

RelationColumnReferenced Column
Person.ContactContactIDContactID
Person.ContactTypeContactTypeIDContactTypeID
Sales.StoreCustomerIDCustomerID

Edit

References

Dependency TypeObject TypeReferenced Object
SchemaSchemaSales

Edit

Dependencies

Reference TypeObject TypeReferencing Object
SelectViewSales.vStoreWithDemographics
SelectSQL table-valued-functiondbo.ufnGetContactInformation

Edit

automatically generated

TableSales.StoreContact
DescriptionCross-reference table mapping stores and their employees.

ColumnData TypeNullableDefaultDescription / PK / Index
CustomerIDintnot null Store identification number. Foreign key to Customer.CustomerID.
PK_StoreContact_CustomerID_ContactID
ContactIDintnot null Contact (store employee) identification number. Foreign key to Contact.ContactID.
PK_StoreContact_CustomerID_ContactIDIX_StoreContact_ContactID
ContactTypeIDintnot null Contact type such as owner or purchasing agent. Foreign key to ContactType.ContactTypeID.
IX_StoreContact_ContactTypeID
rowguiduniqueidentifiernot null(NEWID())ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.
AK_StoreContact_rowguid
ModifiedDatedatetimenot null(GETDATE())Date and time the record was last updated.



RelationColumnReferenced Column
Person.ContactContactIDContactID
Person.ContactTypeContactTypeIDContactTypeID
Sales.StoreCustomerIDCustomerID

Dependency TypeObject TypeReferenced Object
SchemaSchemaSales

Reference TypeObject TypeReferencing Object
SelectViewSales.vStoreWithDemographics
SelectSQL table-valued-functiondbo.ufnGetContactInformation

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