Changes in the cost 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 | Product cost start date. | DBTimeStamp | 4 | ||||
EndDate | Product cost end date. | DBTimeStamp | 4 | ||||
StandardCost | Standard cost of the product. | Currency | 8 | ||||
ModifiedDate | Date and time the record was last updated. | DBTimeStamp | 4 | (getdate()) |
Index | Description | Primary | Unique |
---|---|---|---|
PK_ProductCostHistory_ProductID_StartDate | Primary key (clustered) constraint |
Name | Description | Expression |
---|---|---|
CK_ProductCostHistory_EndDate | Check constraint [EndDate] >= [StartDate] OR [EndDate] IS NULL | ([EndDate]>=[StartDate] OR [EndDate] IS NULL) |
CK_ProductCostHistory_StandardCost | Check constraint [StandardCost] >= (0.00) | ([StandardCost]>=(0.00)) |
Relationship | Description |
---|---|
FK_ProductCostHistory_Product_ProductID | Foreign key constraint referencing Product.ProductID. |
Database Object | Object Type | Description | Dep Level | |
---|---|---|---|---|
dbo.ufnGetProductStandardCost | User Defined Function | Scalar function returning the standard cost 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 |
|