| AdventureWorks Database > Production Schema : Production.ProductCostHistory Table |
| Creation Date | 08/01/2010 08:40 |
| 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 | int | 4 | |||
| StartDate | Product cost start date. | datetime | 4 | |||
| EndDate | Product cost end date. | datetime | 4 | ![]() | |||
| StandardCost | Standard cost of the product. | money | 8 | ||||
| ModifiedDate | Date and time the record was last updated. | datetime | 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 |
|