Difference between revisions of "Production.ProductListPriceHistory (table)"
Line 12: | Line 12: | ||
+ | === 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 19: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | '''Description | + | | '''Description |
|- valign="top" | |- valign="top" | ||
Line 25: | Line 26: | ||
| not null | | not null | ||
| | | | ||
− | | Product identification number. Foreign key to Product.ProductID | + | | Product identification number. Foreign key to Product.ProductID |
|- valign="top" | |- valign="top" | ||
| StartDate | | StartDate | ||
Line 31: | Line 32: | ||
| not null | | not null | ||
| | | | ||
− | | List price start date. | + | | List price start date. |
|- valign="top" | |- valign="top" | ||
| EndDate | | EndDate | ||
Line 37: | Line 38: | ||
| null | | null | ||
| | | | ||
− | | List price end date | + | | List price end date |
|- valign="top" | |- valign="top" | ||
| ListPrice | | ListPrice | ||
Line 43: | Line 44: | ||
| not null | | not null | ||
| | | | ||
− | | Product list price. | + | | Product list price. |
|- valign="top" | |- valign="top" | ||
| ModifiedDate | | ModifiedDate | ||
Line 49: | Line 50: | ||
| 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 | ||
+ | |- | ||
+ | | PK_ProductListPriceHistory_ProductID_StartDate | ||
+ | | ProductID, StartDate | ||
+ | |} | ||
+ | === Check Constraints === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''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 === | ||
{| 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 66: | Line 93: | ||
|} | |} | ||
+ | === References === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Dependency Type | ||
+ | | '''Object Type | ||
+ | | '''Referenced Object | ||
+ | |- | ||
+ | | Schema | ||
+ | | Schema | ||
+ | | [[Production_(schema)|Production]] | ||
+ | |||
+ | |} | ||
+ | |||
+ | === Dependencies === | ||
{| 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 84: | Line 125: | ||
|} | |} | ||
− | |||
Revision as of 00:06, 3 February 2010
Contents
[hide]wikibot
Table | Production.ProductListPriceHistory |
Description | Changes in the list price of a product over time. |
Columns
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
Primary Key | Columns |
PK_ProductListPriceHistory_ProductID_StartDate | ProductID, StartDate |
Check Constraints
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
Relation | Column | Referenced Column |
Production.Product | ProductID | ProductID |
References
Dependency Type | Object Type | Referenced Object |
Schema | Schema | Production |
Dependencies
Reference Type | Object Type | Referencing Object |
Select | Function | dbo.ufnGetProductDealerPrice |
Select | Function | dbo.ufnGetProductListPrice |
automatically generated
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. |
Relation | Column | Referenced Column |
Production.Product | ProductID | ProductID |
Dependency Type | Object Type | Referenced Object |
Schema | Schema | Production |
Reference Type | Object Type | Referencing Object |
Select | Function | dbo.ufnGetProductDealerPrice |
Select | Function | dbo.ufnGetProductListPrice |