Difference between revisions of "Sales.ContactCreditCard (table)"
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
− | |- | + | |- valign="top" |
| '''Table | | '''Table | ||
| Sales.ContactCreditCard | | Sales.ContactCreditCard | ||
Line 8: | Line 8: | ||
| '''Description | | '''Description | ||
| Cross-reference table mapping customers in the Contact table to their credit card information in the CreditCard table. | | Cross-reference table mapping customers in the Contact table to their credit card information in the CreditCard table. | ||
− | |||
|} | |} | ||
− | + | === Columns === | |
{| 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 18: | Line 17: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | '''Description | + | | '''Description |
− | + | ||
|- valign="top" | |- valign="top" | ||
| ContactID | | ContactID | ||
Line 25: | Line 24: | ||
| not null | | not null | ||
| | | | ||
− | | Customer identification number. Foreign key to Contact.ContactID. | + | | Customer identification number. Foreign key to Contact.ContactID. |
|- valign="top" | |- valign="top" | ||
| CreditCardID | | CreditCardID | ||
Line 31: | Line 30: | ||
| not null | | not null | ||
| | | | ||
− | | Credit card identification number. Foreign key to CreditCard.CreditCardID. | + | | Credit card identification number. Foreign key to CreditCard.CreditCardID. |
|- valign="top" | |- valign="top" | ||
| ModifiedDate | | ModifiedDate | ||
Line 37: | Line 36: | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
− | | Date and time the record was last updated. | + | | Date and time the record was last updated. |
|} | |} | ||
+ | === Primary Key === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Primary Key | ||
+ | | '''Columns | ||
+ | |- valign="top" | ||
+ | | PK_ContactCreditCard_ContactID_CreditCardID | ||
+ | | ContactID, CreditCardID | ||
+ | |} | ||
− | + | === Foreign Keys === | |
{| 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 47: | Line 55: | ||
| '''Column | | '''Column | ||
| '''Referenced Column | | '''Referenced Column | ||
− | + | ||
− | |- | + | |- valign="top" |
| [[Person.Contact_(table)|Person.Contact]] | | [[Person.Contact_(table)|Person.Contact]] | ||
| ContactID | | ContactID | ||
| ContactID | | ContactID | ||
− | |- | + | |- valign="top" |
| [[Sales.CreditCard_(table)|Sales.CreditCard]] | | [[Sales.CreditCard_(table)|Sales.CreditCard]] | ||
| CreditCardID | | CreditCardID | ||
Line 58: | Line 66: | ||
|} | |} | ||
+ | === References === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Dependency Type | ||
+ | | '''Object Type | ||
+ | | '''Referenced Object | ||
+ | |||
+ | |- valign="top" | ||
+ | | Schema | ||
+ | | Schema | ||
+ | | [[Sales_(schema)|Sales]] | ||
+ | |||
+ | |} | ||
Latest revision as of 23:17, 23 June 2010
Contents
wikibot[edit]
Table | Sales.ContactCreditCard |
Description | Cross-reference table mapping customers in the Contact table to their credit card information in the CreditCard table. |
Columns[edit]
Column | Data Type | Nullable | Default | Description |
ContactID | int | not null | Customer identification number. Foreign key to Contact.ContactID. | |
CreditCardID | int | not null | Credit card identification number. Foreign key to CreditCard.CreditCardID. | |
ModifiedDate | datetime | not null | (getdate()) | Date and time the record was last updated. |
Primary Key[edit]
Primary Key | Columns |
PK_ContactCreditCard_ContactID_CreditCardID | ContactID, CreditCardID |
Foreign Keys[edit]
Relation | Column | Referenced Column |
Person.Contact | ContactID | ContactID |
Sales.CreditCard | CreditCardID | CreditCardID |
References[edit]
Dependency Type | Object Type | Referenced Object |
Schema | Schema | Sales |
automatically generated[edit]
Table | Sales.ContactCreditCard |
Description | Cross-reference table mapping customers in the Contact table to their credit card information in the CreditCard table. |
Column | Data Type | Nullable | Default | Description / PK / Index |
ContactID | int | not null | Customer identification number. Foreign key to Contact.ContactID. PK_ContactCreditCard_ContactID_CreditCardID | |
CreditCardID | int | not null | Credit card identification number. Foreign key to CreditCard.CreditCardID. PK_ContactCreditCard_ContactID_CreditCardID | |
ModifiedDate | datetime | not null | (GETDATE()) | Date and time the record was last updated. |
Relation | Column | Referenced Column |
Person.Contact | ContactID | ContactID |
Sales.CreditCard | CreditCardID | CreditCardID |
Dependency Type | Object Type | Referenced Object |
Schema | Schema | Sales |