Difference between revisions of "Sales.SpecialOfferProduct (table)"
Line 5: | Line 5: | ||
| '''Table | | '''Table | ||
| Sales.SpecialOfferProduct | | Sales.SpecialOfferProduct | ||
+ | |- valign="top" | ||
+ | | '''Description | ||
+ | | Cross-reference table mapping products to special offer discounts. | ||
|- | |- | ||
|} | |} | ||
Line 15: | Line 18: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | '''PK | + | | '''Description / PK / Index |
− | |||
− | |- | + | |- valign="top" |
| SpecialOfferID | | SpecialOfferID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | PK_SpecialOfferProduct_SpecialOfferID_ProductID | + | | Primary key for SpecialOfferProduct records.<br />PK_SpecialOfferProduct_SpecialOfferID_ProductID |
− | + | |- valign="top" | |
− | |- | ||
| ProductID | | ProductID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Product identification number. Foreign key to Product.ProductID.<br />PK_SpecialOfferProduct_SpecialOfferID_ProductIDIX_SpecialOfferProduct_ProductID |
− | + | |- valign="top" | |
− | |- | ||
| rowguid | | rowguid | ||
| uniqueidentifier | | uniqueidentifier | ||
| not null | | not null | ||
| (newid()) | | (newid()) | ||
− | | | + | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.<br />AK_SpecialOfferProduct_rowguid |
− | + | |- valign="top" | |
− | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
− | | | + | | Date and time the record was last updated.<br /> |
− | |||
|} | |} | ||
Line 82: | Line 80: | ||
| SpecialOfferID | | SpecialOfferID | ||
|} | |} | ||
+ | |||
+ | |||
+ | |||
== automatically generated == | == automatically generated == | ||
Revision as of 22:55, 28 December 2009
wikibot
Table | Sales.SpecialOfferProduct |
Description | Cross-reference table mapping products to special offer discounts. |
Column | Data Type | Nullable | Default | Description / PK / Index |
SpecialOfferID | int | not null | Primary key for SpecialOfferProduct records. PK_SpecialOfferProduct_SpecialOfferID_ProductID | |
ProductID | int | not null | Product identification number. Foreign key to Product.ProductID. PK_SpecialOfferProduct_SpecialOfferID_ProductIDIX_SpecialOfferProduct_ProductID | |
rowguid | uniqueidentifier | not null | (newid()) | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. AK_SpecialOfferProduct_rowguid |
ModifiedDate | datetime | not null | (getdate()) | Date and time the record was last updated. |
Relation | Column | Referenced Column |
Production.Product | ProductID | ProductID |
Sales.SpecialOffer | SpecialOfferID | SpecialOfferID |
Detail Table | Column | Referencing Column |
Sales.SalesOrderDetail | SpecialOfferID | SpecialOfferID |
Sales.SalesOrderDetail | SpecialOfferID | SpecialOfferID |
automatically generated
Table | Sales.SpecialOfferProduct |
Description | Cross-reference table mapping products to special offer discounts. |
Column | Data Type | Nullable | Default | Description / PK / Index |
SpecialOfferID | int | not null | Primary key for SpecialOfferProduct records. PK_SpecialOfferProduct_SpecialOfferID_ProductID | |
ProductID | int | not null | Product identification number. Foreign key to Product.ProductID. PK_SpecialOfferProduct_SpecialOfferID_ProductIDIX_SpecialOfferProduct_ProductID | |
rowguid | uniqueidentifier | not null | (NEWID()) | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. AK_SpecialOfferProduct_rowguid |
ModifiedDate | datetime | not null | (GETDATE()) | Date and time the record was last updated. |
Relation | Column | Referenced Column |
Production.Product | ProductID | ProductID |
Sales.SpecialOffer | SpecialOfferID | SpecialOfferID |
Detail Table | Column | Referencing Column |
Sales.SalesOrderDetail | SpecialOfferID | SpecialOfferID |
Sales.SalesOrderDetail | SpecialOfferID | SpecialOfferID |
Dependency Type | Object Type | Referenced Object |
Schema | Schema | Sales |