Editing Sales.StoreContact (table)
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
− | |- | + | |- |
| '''Table | | '''Table | ||
| Sales.StoreContact | | Sales.StoreContact | ||
− | |- | + | |- |
− | |||
− | |||
|} | |} | ||
− | + | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
Line 17: | Line 15: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | ''' | + | | '''PK |
− | + | | '''Index | |
− | |- | + | |
+ | |- | ||
| CustomerID | | CustomerID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | PK_StoreContact_CustomerID_ContactID |
− | |- | + | | |
+ | |- | ||
| ContactID | | ContactID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | PK_StoreContact_CustomerID_ContactID |
− | |- | + | | IX_StoreContact_ContactID |
+ | |- | ||
| ContactTypeID | | ContactTypeID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | |
− | |- | + | | IX_StoreContact_ContactTypeID |
+ | |- | ||
| rowguid | | rowguid | ||
| uniqueidentifier | | uniqueidentifier | ||
| not null | | not null | ||
| (newid()) | | (newid()) | ||
− | | | + | | |
− | |- | + | | AK_StoreContact_rowguid |
+ | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| | | | ||
− | |||
− | |||
− | |||
| | | | ||
− | |||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
− | | ''' | + | | '''Relation |
− | | ''' | + | | '''Column |
− | | '''Referenced | + | | '''Referenced Column |
− | + | ||
− | |- | + | |- |
− | | | + | | [[Person.Contact_(table)|Person.Contact]] |
− | | | + | | ContactID |
− | | [[ | + | | ContactID |
− | + | |- | |
+ | | [[Person.ContactType_(table)|Person.ContactType]] | ||
+ | | ContactTypeID | ||
+ | | ContactTypeID | ||
+ | |- | ||
+ | | [[Sales.Store_(table)|Sales.Store]] | ||
+ | | CustomerID | ||
+ | | CustomerID | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== automatically generated == | == automatically generated == | ||
Line 148: | Line 82: | ||
| '''Table | | '''Table | ||
| Sales.StoreContact | | Sales.StoreContact | ||
− | |- | + | |- |
+ | |||
| '''Description | | '''Description | ||
| Cross-reference table mapping stores and their employees. | | Cross-reference table mapping stores and their employees. | ||
|- | |- | ||
+ | |||
|} | |} | ||
Line 168: | Line 104: | ||
| not null | | not null | ||
| | | | ||
− | | Store identification number. Foreign key to Customer.CustomerID. | + | | Store identification number. Foreign key to Customer.CustomerID.PK_StoreContact_CustomerID_ContactID |
|- valign="top" | |- valign="top" | ||
| ContactID | | ContactID | ||
Line 174: | Line 110: | ||
| not null | | not null | ||
| | | | ||
− | | Contact (store employee) identification number. Foreign key to Contact.ContactID. | + | | Contact (store employee) identification number. Foreign key to Contact.ContactID.PK_StoreContact_CustomerID_ContactIDIX_StoreContact_ContactID |
|- valign="top" | |- valign="top" | ||
| ContactTypeID | | ContactTypeID | ||
Line 180: | Line 116: | ||
| not null | | not null | ||
| | | | ||
− | | Contact type such as owner or purchasing agent. Foreign key to ContactType.ContactTypeID. | + | | Contact type such as owner or purchasing agent. Foreign key to ContactType.ContactTypeID.IX_StoreContact_ContactTypeID |
|- valign="top" | |- valign="top" | ||
| rowguid | | rowguid | ||
Line 186: | Line 122: | ||
| not null | | not null | ||
| (NEWID()) | | (NEWID()) | ||
− | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. | + | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.AK_StoreContact_rowguid |
|- valign="top" | |- valign="top" | ||
| ModifiedDate | | ModifiedDate | ||
Line 192: | Line 128: | ||
| not null | | not null | ||
| (GETDATE()) | | (GETDATE()) | ||
− | | Date and time the record was last updated. | + | | Date and time the record was last updated. |
|} | |} | ||
Line 220: | Line 156: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
− | | ''' | + | | '''Referencing Object |
| '''Object Type | | '''Object Type | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| '''Reference Type | | '''Reference Type | ||
− | + | ||
− | |||
− | |||
|- | |- | ||
+ | | [[Sales.vStoreWithDemographics_(view)|Sales.vStoreWithDemographics]] | ||
+ | | View | ||
| Select | | Select | ||
− | |||
− | |||
− | |||
|- | |- | ||
+ | | [[dbo.ufnGetContactInformation_(function)|dbo.ufnGetContactInformation]] | ||
+ | | SQL table-valued-function | ||
| Select | | Select | ||
− | |||
− | |||
− | |||
|} | |} |