Editing Production.Product (table)
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
− | |- | + | |- |
| '''Table | | '''Table | ||
| Production.Product | | Production.Product | ||
Line 8: | Line 8: | ||
| '''Description | | '''Description | ||
| Products sold or used in the manfacturing of sold products. | | Products sold or used in the manfacturing of sold products. | ||
+ | |- | ||
|} | |} | ||
+ | |||
=== Columns === | === Columns === | ||
Line 18: | Line 20: | ||
| '''Default | | '''Default | ||
| '''Description | | '''Description | ||
− | + | ||
|- valign="top" | |- valign="top" | ||
| ProductID | | ProductID | ||
Line 176: | Line 178: | ||
| '''Primary Key | | '''Primary Key | ||
| '''Columns | | '''Columns | ||
− | |- | + | |- |
| PK_Product_ProductID | | PK_Product_ProductID | ||
| ProductID | | ProductID | ||
Line 187: | Line 189: | ||
| '''Type | | '''Type | ||
| '''Columns | | '''Columns | ||
− | + | ||
− | |- | + | |- |
+ | | AK_Product_ProductNumber | ||
+ | | Unique | ||
+ | | ProductNumber | ||
+ | |- | ||
| AK_Product_Name | | AK_Product_Name | ||
| Unique | | Unique | ||
| Name | | Name | ||
− | |- | + | |- |
− | |||
− | |||
− | |||
− | |||
| AK_Product_rowguid | | AK_Product_rowguid | ||
| Unique | | Unique | ||
Line 208: | Line 210: | ||
| '''Expression | | '''Expression | ||
| '''Description | | '''Description | ||
− | + | ||
− | |- | + | |- |
| CK_Product_Class | | CK_Product_Class | ||
| (upper([Class])='H' OR upper([Class])='M' OR upper([Class])='L' OR [Class] IS NULL) | | (upper([Class])='H' OR upper([Class])='M' OR upper([Class])='L' OR [Class] IS NULL) | ||
| Check constraint [Class]='h' OR [Class]='m' OR [Class]='l' OR [Class]='H' OR [Class]='M' OR [Class]='L' OR [Class] IS NULL | | Check constraint [Class]='h' OR [Class]='m' OR [Class]='l' OR [Class]='H' OR [Class]='M' OR [Class]='L' OR [Class] IS NULL | ||
− | |- | + | |- |
| CK_Product_DaysToManufacture | | CK_Product_DaysToManufacture | ||
| ([DaysToManufacture]>=(0)) | | ([DaysToManufacture]>=(0)) | ||
| Check constraint [DaysToManufacture] >= (0) | | Check constraint [DaysToManufacture] >= (0) | ||
− | |- | + | |- |
| CK_Product_ListPrice | | CK_Product_ListPrice | ||
| ([ListPrice]>=(0.00)) | | ([ListPrice]>=(0.00)) | ||
| Check constraint [ListPrice] >= (0.00) | | Check constraint [ListPrice] >= (0.00) | ||
− | |- | + | |- |
| CK_Product_ProductLine | | CK_Product_ProductLine | ||
| (upper([ProductLine])='R' OR upper([ProductLine])='M' OR upper([ProductLine])='T' OR upper([ProductLine])='S' OR [ProductLine] IS NULL) | | (upper([ProductLine])='R' OR upper([ProductLine])='M' OR upper([ProductLine])='T' OR upper([ProductLine])='S' OR [ProductLine] IS NULL) | ||
| Check constraint [ProductLine]='r' OR [ProductLine]='m' OR [ProductLine]='t' OR [ProductLine]='s' OR [ProductLine]='R' OR [ProductLine]='M' OR [ProductLine]='T' OR [ProductLine]='S' OR [ProductLine] IS NULL | | Check constraint [ProductLine]='r' OR [ProductLine]='m' OR [ProductLine]='t' OR [ProductLine]='s' OR [ProductLine]='R' OR [ProductLine]='M' OR [ProductLine]='T' OR [ProductLine]='S' OR [ProductLine] IS NULL | ||
− | |- | + | |- |
| CK_Product_ReorderPoint | | CK_Product_ReorderPoint | ||
| ([ReorderPoint]>(0)) | | ([ReorderPoint]>(0)) | ||
| Check constraint [ReorderPoint] > (0) | | Check constraint [ReorderPoint] > (0) | ||
− | |- | + | |- |
| CK_Product_SafetyStockLevel | | CK_Product_SafetyStockLevel | ||
| ([SafetyStockLevel]>(0)) | | ([SafetyStockLevel]>(0)) | ||
| Check constraint [SafetyStockLevel] > (0) | | Check constraint [SafetyStockLevel] > (0) | ||
− | |- | + | |- |
| CK_Product_SellEndDate | | CK_Product_SellEndDate | ||
| ([SellEndDate]>=[SellStartDate] OR [SellEndDate] IS NULL) | | ([SellEndDate]>=[SellStartDate] OR [SellEndDate] IS NULL) | ||
| Check constraint [SellEndDate] >= [SellStartDate] OR [SellEndDate] IS NULL | | Check constraint [SellEndDate] >= [SellStartDate] OR [SellEndDate] IS NULL | ||
− | |- | + | |- |
| CK_Product_StandardCost | | CK_Product_StandardCost | ||
| ([StandardCost]>=(0.00)) | | ([StandardCost]>=(0.00)) | ||
| Check constraint [SafetyStockLevel] > (0) | | Check constraint [SafetyStockLevel] > (0) | ||
− | |- | + | |- |
| CK_Product_Style | | CK_Product_Style | ||
| (upper([Style])='U' OR upper([Style])='M' OR upper([Style])='W' OR [Style] IS NULL) | | (upper([Style])='U' OR upper([Style])='M' OR upper([Style])='W' OR [Style] IS NULL) | ||
| Check constraint [Style]='u' OR [Style]='m' OR [Style]='w' OR [Style]='U' OR [Style]='M' OR [Style]='W' OR [Style] IS NULL | | Check constraint [Style]='u' OR [Style]='m' OR [Style]='w' OR [Style]='U' OR [Style]='M' OR [Style]='W' OR [Style] IS NULL | ||
− | |- | + | |- |
| CK_Product_Weight | | CK_Product_Weight | ||
| ([Weight]>(0.00)) | | ([Weight]>(0.00)) | ||
Line 257: | Line 259: | ||
| '''Column | | '''Column | ||
| '''Referenced Column | | '''Referenced Column | ||
− | + | ||
− | |- | + | |- |
| [[Production.ProductModel_(table)|Production.ProductModel]] | | [[Production.ProductModel_(table)|Production.ProductModel]] | ||
| ProductModelID | | ProductModelID | ||
| ProductModelID | | ProductModelID | ||
− | |- | + | |- |
| [[Production.ProductSubcategory_(table)|Production.ProductSubcategory]] | | [[Production.ProductSubcategory_(table)|Production.ProductSubcategory]] | ||
| ProductSubcategoryID | | ProductSubcategoryID | ||
| ProductSubcategoryID | | ProductSubcategoryID | ||
− | |- | + | |- |
| [[Production.UnitMeasure_(table)|Production.UnitMeasure]] | | [[Production.UnitMeasure_(table)|Production.UnitMeasure]] | ||
| SizeUnitMeasureCode | | SizeUnitMeasureCode | ||
| UnitMeasureCode | | UnitMeasureCode | ||
− | |- | + | |- |
| [[Production.UnitMeasure_(table)|Production.UnitMeasure]] | | [[Production.UnitMeasure_(table)|Production.UnitMeasure]] | ||
| WeightUnitMeasureCode | | WeightUnitMeasureCode | ||
Line 282: | Line 284: | ||
| '''Column | | '''Column | ||
| '''Referencing Column | | '''Referencing Column | ||
− | + | ||
− | |- | + | |- |
| [[Production.BillOfMaterials_(table)|Production.BillOfMaterials]] | | [[Production.BillOfMaterials_(table)|Production.BillOfMaterials]] | ||
| ProductID | | ProductID | ||
| ComponentID | | ComponentID | ||
− | |- | + | |- |
| [[Production.BillOfMaterials_(table)|Production.BillOfMaterials]] | | [[Production.BillOfMaterials_(table)|Production.BillOfMaterials]] | ||
| ProductID | | ProductID | ||
| ProductAssemblyID | | ProductAssemblyID | ||
− | |- | + | |- |
| [[Production.ProductCostHistory_(table)|Production.ProductCostHistory]] | | [[Production.ProductCostHistory_(table)|Production.ProductCostHistory]] | ||
| ProductID | | ProductID | ||
| ProductID | | ProductID | ||
− | |- | + | |- |
| [[Production.ProductDocument_(table)|Production.ProductDocument]] | | [[Production.ProductDocument_(table)|Production.ProductDocument]] | ||
| ProductID | | ProductID | ||
| ProductID | | ProductID | ||
− | |- | + | |- |
| [[Production.ProductInventory_(table)|Production.ProductInventory]] | | [[Production.ProductInventory_(table)|Production.ProductInventory]] | ||
| ProductID | | ProductID | ||
| ProductID | | ProductID | ||
− | |- | + | |- |
| [[Production.ProductListPriceHistory_(table)|Production.ProductListPriceHistory]] | | [[Production.ProductListPriceHistory_(table)|Production.ProductListPriceHistory]] | ||
| ProductID | | ProductID | ||
| ProductID | | ProductID | ||
− | |- | + | |- |
| [[Production.ProductProductPhoto_(table)|Production.ProductProductPhoto]] | | [[Production.ProductProductPhoto_(table)|Production.ProductProductPhoto]] | ||
| ProductID | | ProductID | ||
| ProductID | | ProductID | ||
− | |- | + | |- |
| [[Production.ProductReview_(table)|Production.ProductReview]] | | [[Production.ProductReview_(table)|Production.ProductReview]] | ||
| ProductID | | ProductID | ||
| ProductID | | ProductID | ||
− | |- | + | |- |
| [[Purchasing.ProductVendor_(table)|Purchasing.ProductVendor]] | | [[Purchasing.ProductVendor_(table)|Purchasing.ProductVendor]] | ||
| ProductID | | ProductID | ||
| ProductID | | ProductID | ||
− | |- | + | |- |
| [[Purchasing.PurchaseOrderDetail_(table)|Purchasing.PurchaseOrderDetail]] | | [[Purchasing.PurchaseOrderDetail_(table)|Purchasing.PurchaseOrderDetail]] | ||
| ProductID | | ProductID | ||
| ProductID | | ProductID | ||
− | |- | + | |- |
| [[Sales.ShoppingCartItem_(table)|Sales.ShoppingCartItem]] | | [[Sales.ShoppingCartItem_(table)|Sales.ShoppingCartItem]] | ||
| ProductID | | ProductID | ||
| ProductID | | ProductID | ||
− | |- | + | |- |
| [[Sales.SpecialOfferProduct_(table)|Sales.SpecialOfferProduct]] | | [[Sales.SpecialOfferProduct_(table)|Sales.SpecialOfferProduct]] | ||
| ProductID | | ProductID | ||
| ProductID | | ProductID | ||
− | |- | + | |- |
| [[Production.TransactionHistory_(table)|Production.TransactionHistory]] | | [[Production.TransactionHistory_(table)|Production.TransactionHistory]] | ||
| ProductID | | ProductID | ||
| ProductID | | ProductID | ||
− | |- | + | |- |
| [[Production.WorkOrder_(table)|Production.WorkOrder]] | | [[Production.WorkOrder_(table)|Production.WorkOrder]] | ||
| ProductID | | ProductID | ||
Line 348: | Line 350: | ||
| '''Referenced Object | | '''Referenced Object | ||
− | |- | + | |- |
| Data Type | | Data Type | ||
| Type | | Type | ||
| [[dbo.Flag_(type)|dbo.Flag]] | | [[dbo.Flag_(type)|dbo.Flag]] | ||
− | |- | + | |- |
| Data Type | | Data Type | ||
| Type | | Type | ||
| [[dbo.Name_(type)|dbo.Name]] | | [[dbo.Name_(type)|dbo.Name]] | ||
− | |- | + | |- |
| Schema | | Schema | ||
| Schema | | Schema | ||
Line 372: | Line 374: | ||
| '''Referencing Object | | '''Referencing Object | ||
− | |- | + | |- |
| Select | | Select | ||
| View | | View | ||
| [[Production.vProductAndDescription_(view)|Production.vProductAndDescription]] | | [[Production.vProductAndDescription_(view)|Production.vProductAndDescription]] | ||
− | |- | + | |- |
| Select | | Select | ||
| Procedure | | Procedure | ||
| [[dbo.uspGetBillOfMaterials_(procedure)|dbo.uspGetBillOfMaterials]] | | [[dbo.uspGetBillOfMaterials_(procedure)|dbo.uspGetBillOfMaterials]] | ||
− | |- | + | |- |
| Select | | Select | ||
| Procedure | | Procedure | ||
| [[dbo.uspGetWhereUsedProductID_(procedure)|dbo.uspGetWhereUsedProductID]] | | [[dbo.uspGetWhereUsedProductID_(procedure)|dbo.uspGetWhereUsedProductID]] | ||
− | |- | + | |- |
| Select | | Select | ||
| Function | | Function | ||
| [[dbo.ufnGetProductDealerPrice_(function)|dbo.ufnGetProductDealerPrice]] | | [[dbo.ufnGetProductDealerPrice_(function)|dbo.ufnGetProductDealerPrice]] | ||
− | |- | + | |- |
| Select | | Select | ||
| Function | | Function | ||
| [[dbo.ufnGetProductListPrice_(function)|dbo.ufnGetProductListPrice]] | | [[dbo.ufnGetProductListPrice_(function)|dbo.ufnGetProductListPrice]] | ||
− | |- | + | |- |
| Select | | Select | ||
| Function | | Function |