From dbscript Online Help
wikibot[edit]
Table
|
Production.ProductListPriceHistory
|
Description
|
Changes in the list price of a product over time.
|
Columns[edit]
Column
|
Data Type
|
Nullable
|
Default
|
Description
|
ProductID
|
int
|
not null
|
|
Product identification number. Foreign key to Product.ProductID
|
StartDate
|
datetime
|
not null
|
|
List price start date.
|
EndDate
|
datetime
|
null
|
|
List price end date
|
ListPrice
|
money
|
not null
|
|
Product list price.
|
ModifiedDate
|
datetime
|
not null
|
(getdate())
|
Date and time the record was last updated.
|
Primary Key[edit]
Primary Key
|
Columns
|
PK_ProductListPriceHistory_ProductID_StartDate
|
ProductID, StartDate
|
Check Constraints[edit]
Check Constraint
|
Expression
|
Description
|
CK_ProductListPriceHistory_EndDate
|
([EndDate]>=[StartDate] OR [EndDate] IS NULL)
|
Check constraint [EndDate] >= [StartDate] OR [EndDate] IS NULL
|
CK_ProductListPriceHistory_ListPrice
|
([ListPrice]>(0.00))
|
Check constraint [ListPrice] > (0.00)
|
Foreign Keys[edit]
References[edit]
Dependency Type
|
Object Type
|
Referenced Object
|
Schema
|
Schema
|
Production
|
Dependencies[edit]
automatically generated[edit]
Table
|
Production.ProductListPriceHistory
|
Description
|
Changes in the list price of a product over time.
|
Column
|
Data Type
|
Nullable
|
Default
|
Description / PK / Index
|
ProductID
|
int
|
not null
|
|
Product identification number. Foreign key to Product.ProductID PK_ProductListPriceHistory_ProductID_StartDate
|
StartDate
|
datetime
|
not null
|
|
List price start date. PK_ProductListPriceHistory_ProductID_StartDate
|
EndDate
|
datetime
|
null
|
|
List price end date
|
ListPrice
|
money
|
not null
|
|
Product list price.
|
ModifiedDate
|
datetime
|
not null
|
(GETDATE())
|
Date and time the record was last updated.
|
Dependency Type
|
Object Type
|
Referenced Object
|
Schema
|
Schema
|
Production
|