Production.ProductCostHistory Table
Information
| Name | ProductCostHistory |
| Schema | Production |
| Row Count | 395 |
| Data Size | 24 KB |
| Index Size | 16 KB |
| Reserved Size | 40 KB |
| Unused Size | 0 KB |
| Created | 14.10.2005. 1:58:33 |
| Modified | 2.7.2009. 10:35:10 |
Extended Properties
| Name | Type | Property Name | Value |
|---|---|---|---|
| ProductCostHistory | TABLE | MS_Description | Changes in the cost of a product over time. |
Columns
| PK | Key | Identity | Name | Data Type | Allow Nulls | Collation | References | Default | Computed | Compute Expression |
|---|---|---|---|---|---|---|---|---|---|---|
|   |   |   | ProductID | int |   | Production.Product.ProductID |   | |||
|   |   |   | StartDate | datetime |   |   | ||||
|   |   | EndDate | datetime |   |   | |||||
|   |   | StandardCost | money |   |   | |||||
|   |   | ModifiedDate | datetime |   | (getdate()) |   |
Indexes
| Name | Type | Primary | Unique | Columns |
|---|---|---|---|---|
| PK_ProductCostHistory_ProductID_StartDate | Clustered |   |   | ProductID, StartDate |
Check Constraints
| Name | Column | Enabled | Trusted | Expression |
|---|---|---|---|---|
| CK_ProductCostHistory_EndDate |   |   | ([EndDate]>=[StartDate] OR [EndDate] IS NULL) | |
| CK_ProductCostHistory_StandardCost | StandardCost |   |   | ([StandardCost]>=(0.00)) |
Foreign Key Constraints
| Name | Type | Referenced Table |
|---|---|---|
| FK_ProductCostHistory_Product_ProductID | Foreign key | Production.Product |
Triggers
| Name | Activates on | Instead Of | For Replication | Enabled | Created | Modified |
|---|---|---|---|---|---|---|
| uProductCostHistory | UPDATE |   |   |   | 14.10.2005. 1:59:53 | 2.7.2009. 10:35:10 |
