ScrewTurn Wiki

Edit

wikibot

TableSales.SpecialOfferProduct
DescriptionCross-reference table mapping products to special offer discounts.

Edit

Columns

ColumnData TypeNullableDefaultDescription
SpecialOfferIDintnot null Primary key for SpecialOfferProduct records.
ProductIDintnot null Product identification number. Foreign key to Product.ProductID.
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_SpecialOfferProduct_SpecialOfferID_ProductIDSpecialOfferID, ProductID

Edit

Indexes

IndexTypeColumns
AK_SpecialOfferProduct_rowguidUniquerowguid
IX_SpecialOfferProduct_ProductID ProductID

Edit

Foreign Keys

RelationColumnReferenced Column
Production.ProductProductIDProductID
Sales.SpecialOfferSpecialOfferIDSpecialOfferID

Edit

Detail Tables

Detail TableColumnReferencing Column
Sales.SalesOrderDetailSpecialOfferIDSpecialOfferID
Sales.SalesOrderDetailSpecialOfferIDSpecialOfferID

Edit

References

Dependency TypeObject TypeReferenced Object
SchemaSchemaSales

Edit

automatically generated

TableSales.SpecialOfferProduct
DescriptionCross-reference table mapping products to special offer discounts.

ColumnData TypeNullableDefaultDescription / PK / Index
SpecialOfferIDintnot null Primary key for SpecialOfferProduct records.
PK_SpecialOfferProduct_SpecialOfferID_ProductID
ProductIDintnot null Product identification number. Foreign key to Product.ProductID.
PK_SpecialOfferProduct_SpecialOfferID_ProductIDIX_SpecialOfferProduct_ProductID
rowguiduniqueidentifiernot null(NEWID())ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.
AK_SpecialOfferProduct_rowguid
ModifiedDatedatetimenot null(GETDATE())Date and time the record was last updated.



RelationColumnReferenced Column
Production.ProductProductIDProductID
Sales.SpecialOfferSpecialOfferIDSpecialOfferID

Detail TableColumnReferencing Column
Sales.SalesOrderDetailSpecialOfferIDSpecialOfferID
Sales.SalesOrderDetailSpecialOfferIDSpecialOfferID

Dependency TypeObject TypeReferenced Object
SchemaSchemaSales

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