Changes in the list price of a product over time.
Creation Date | 27/10/2017 14:33 |
File Group | PRIMARY |
Text File Group | |
System Object | |
Published for Replication | |
Rows | 395 |
Data Space Used | 24.00 KB |
Index Space Used | 16.00 KB |
Column Name | Description | Datatype | Length | Allow Nulls | Default | Formula | |
---|---|---|---|---|---|---|---|
ProductID | Product identification number. Foreign key to Product.ProductID | Integer | 4 | ||||
StartDate | List price start date. | DBTimeStamp | 4 | ||||
EndDate | List price end date | DBTimeStamp | 4 | ||||
ListPrice | Product list price. | Currency | 8 | ||||
ModifiedDate | Date and time the record was last updated. | DBTimeStamp | 4 | (getdate()) |
Index | Description | Primary | Unique |
---|---|---|---|
PK_ProductListPriceHistory_ProductID_StartDate | Primary key (clustered) constraint |
Name | Description | Expression |
---|---|---|
CK_ProductListPriceHistory_EndDate | Check constraint [EndDate] >= [StartDate] OR [EndDate] IS NULL | ([EndDate]>=[StartDate] OR [EndDate] IS NULL) |
CK_ProductListPriceHistory_ListPrice | Check constraint [ListPrice] > (0.00) | ([ListPrice]>(0.00)) |
Relationship | Description |
---|---|
FK_ProductListPriceHistory_Product_ProductID | Foreign key constraint referencing Product.ProductID. |
Database Object | Object Type | Description | Dep Level | |
---|---|---|---|---|
dbo.ufnGetProductDealerPrice | User Defined Function | Scalar function returning the dealer price for a given product on a particular order date. | 1 | |
dbo.ufnGetProductListPrice | User Defined Function | Scalar function returning the list price for a given product on a particular order date. | 1 |
Database Object | Object Type | Description | Dep Level | |
---|---|---|---|---|
dbo.Flag | User Defined Data Type | 2 | ||
dbo.Name | User Defined Data Type | 2 | ||
Production.Product | Table | Products sold or used in the manfacturing of sold products. | 1 | |
Production.ProductCategory | Table | High-level product categorization. | 3 | |
Production.ProductModel | Table | Product model classification. | 2 | |
Production.ProductSubcategory | Table | Product subcategories. See ProductCategory table. | 2 | |
Production.UnitMeasure | Table | Unit of measure lookup table. | 2 |
|