Welcome Guest, you are in: Login

devio dbscript ScrewTurn Wiki

RSS RSS

Navigation





Search the wiki
»

PoweredBy

Page History: Sales StoreContact (table)

Compare Page Revisions



« Older Revision - Back to Page History - Newer Revision »


Page Revision: 2010/02/11 09:07


wikibot

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

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.

Primary Key

Primary KeyColumns
PK_StoreContact_CustomerID_ContactIDCustomerID, ContactID

Indexes

IndexTypeColumns
AK_StoreContact_rowguidUniquerowguid
IX_StoreContact_ContactID ContactID
IX_StoreContact_ContactTypeID ContactTypeID

Foreign Keys

RelationColumnReferenced Column
Person.ContactContactIDContactID
Person.ContactTypeContactTypeIDContactTypeID
Sales.StoreCustomerIDCustomerID

References

Dependency TypeObject TypeReferenced Object
SchemaSchemaSales

Dependencies

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

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