Difference between revisions of "Production.ProductListPriceHistory (table)"
| 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 | ||
| Production.ProductListPriceHistory | | Production.ProductListPriceHistory | ||
| Line 8: | Line 8: | ||
| '''Description | | '''Description | ||
| Changes in the list price of a product over time. | | Changes in the list price of a product over time. | ||
| − | |||
|} | |} | ||
| − | |||
=== Columns === | === Columns === | ||
| Line 20: | Line 18: | ||
| '''Default | | '''Default | ||
| '''Description | | '''Description | ||
| − | + | ||
|- valign="top" | |- valign="top" | ||
| ProductID | | ProductID | ||
| Line 58: | Line 56: | ||
| '''Primary Key | | '''Primary Key | ||
| '''Columns | | '''Columns | ||
| − | |- | + | |- valign="top" |
| PK_ProductListPriceHistory_ProductID_StartDate | | PK_ProductListPriceHistory_ProductID_StartDate | ||
| ProductID, StartDate | | ProductID, StartDate | ||
| Line 69: | Line 67: | ||
| '''Expression | | '''Expression | ||
| '''Description | | '''Description | ||
| − | + | ||
| − | |- | + | |- valign="top" |
| CK_ProductListPriceHistory_EndDate | | CK_ProductListPriceHistory_EndDate | ||
| ([EndDate]>=[StartDate] OR [EndDate] IS NULL) | | ([EndDate]>=[StartDate] OR [EndDate] IS NULL) | ||
| Check constraint [EndDate] >= [StartDate] OR [EndDate] IS NULL | | Check constraint [EndDate] >= [StartDate] OR [EndDate] IS NULL | ||
| − | |- | + | |- valign="top" |
| CK_ProductListPriceHistory_ListPrice | | CK_ProductListPriceHistory_ListPrice | ||
| ([ListPrice]>(0.00)) | | ([ListPrice]>(0.00)) | ||
| Line 86: | Line 84: | ||
| '''Column | | '''Column | ||
| '''Referenced Column | | '''Referenced Column | ||
| − | + | ||
| − | |- | + | |- valign="top" |
| [[Production.Product_(table)|Production.Product]] | | [[Production.Product_(table)|Production.Product]] | ||
| ProductID | | ProductID | ||
| Line 100: | Line 98: | ||
| '''Referenced Object | | '''Referenced Object | ||
| − | |- | + | |- valign="top" |
| Schema | | Schema | ||
| Schema | | Schema | ||
| Line 114: | Line 112: | ||
| '''Referencing Object | | '''Referencing Object | ||
| − | |- | + | |- valign="top" |
| Select | | Select | ||
| Function | | Function | ||
| [[dbo.ufnGetProductDealerPrice_(function)|dbo.ufnGetProductDealerPrice]] | | [[dbo.ufnGetProductDealerPrice_(function)|dbo.ufnGetProductDealerPrice]] | ||
| − | |- | + | |- valign="top" |
| Select | | Select | ||
| Function | | Function | ||
Latest revision as of 23:16, 23 June 2010
Contents
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]
| Relation | Column | Referenced Column |
| Production.Product | ProductID | ProductID |
References[edit]
| Dependency Type | Object Type | Referenced Object |
| Schema | Schema | Production |
Dependencies[edit]
| Reference Type | Object Type | Referencing Object |
| Select | Function | dbo.ufnGetProductDealerPrice |
| Select | Function | dbo.ufnGetProductListPrice |
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. |
| 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 |