Editing Production.BillOfMaterials (table)

Jump to: navigation, search

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"
|- valign="top"
+
|-
 
| '''Table
 
| '''Table
 
| Production.BillOfMaterials
 
| Production.BillOfMaterials
Line 8: Line 8:
 
| '''Description
 
| '''Description
 
| Items required to make bicycles and bicycle subassemblies. It identifies the heirarchical relationship between a parent product and its components.
 
| Items required to make bicycles and bicycle subassemblies. It identifies the heirarchical relationship between a parent product and its components.
 +
|-
 
|}
 
|}
 +
  
 
=== Columns ===
 
=== Columns ===
Line 18: Line 20:
 
| '''Default
 
| '''Default
 
| '''Description
 
| '''Description
 
+
 
|- valign="top"
 
|- valign="top"
 
| BillOfMaterialsID
 
| BillOfMaterialsID
Line 80: Line 82:
 
| '''Primary Key
 
| '''Primary Key
 
| '''Columns
 
| '''Columns
|- valign="top"
+
|-
 
| PK_BillOfMaterials_BillOfMaterialsID
 
| PK_BillOfMaterials_BillOfMaterialsID
 
| BillOfMaterialsID
 
| BillOfMaterialsID
Line 91: Line 93:
 
| '''Type
 
| '''Type
 
| '''Columns
 
| '''Columns
 
+
|- valign="top"
+
|-
 
| AK_BillOfMaterials_ProductAssemblyID_ComponentID_StartDate
 
| AK_BillOfMaterials_ProductAssemblyID_ComponentID_StartDate
 
| Unique
 
| Unique
 
| ProductAssemblyID, ComponentID, StartDate
 
| ProductAssemblyID, ComponentID, StartDate
|- valign="top"
+
|-
 
| IX_BillOfMaterials_UnitMeasureCode
 
| IX_BillOfMaterials_UnitMeasureCode
 
|  
 
|  
Line 108: Line 110:
 
| '''Expression
 
| '''Expression
 
| '''Description
 
| '''Description
 
+
|- valign="top"
+
|-
 
| CK_BillOfMaterials_BOMLevel
 
| CK_BillOfMaterials_BOMLevel
 
| ([ProductAssemblyID] IS NULL AND [BOMLevel]=(0) AND [PerAssemblyQty]=(1.00) OR [ProductAssemblyID] IS NOT NULL AND [BOMLevel]>=(1))
 
| ([ProductAssemblyID] IS NULL AND [BOMLevel]=(0) AND [PerAssemblyQty]=(1.00) OR [ProductAssemblyID] IS NOT NULL AND [BOMLevel]>=(1))
 
| Check constraint [ProductAssemblyID] IS NULL AND [BOMLevel] = (0) AND [PerAssemblyQty] = (1) OR [ProductAssemblyID] IS NOT NULL AND [BOMLevel] >= (1)
 
| Check constraint [ProductAssemblyID] IS NULL AND [BOMLevel] = (0) AND [PerAssemblyQty] = (1) OR [ProductAssemblyID] IS NOT NULL AND [BOMLevel] >= (1)
|- valign="top"
+
|-
 
| CK_BillOfMaterials_EndDate
 
| CK_BillOfMaterials_EndDate
 
| ([EndDate]>[StartDate] OR [EndDate] IS NULL)
 
| ([EndDate]>[StartDate] OR [EndDate] IS NULL)
 
| Check constraint EndDate] > [StartDate] OR [EndDate] IS NULL
 
| Check constraint EndDate] > [StartDate] OR [EndDate] IS NULL
|- valign="top"
+
|-
 
| CK_BillOfMaterials_PerAssemblyQty
 
| CK_BillOfMaterials_PerAssemblyQty
 
| ([PerAssemblyQty]>=(1.00))
 
| ([PerAssemblyQty]>=(1.00))
 
| Check constraint [PerAssemblyQty] >= (1.00)
 
| Check constraint [PerAssemblyQty] >= (1.00)
|- valign="top"
+
|-
 
| CK_BillOfMaterials_ProductAssemblyID
 
| CK_BillOfMaterials_ProductAssemblyID
 
| ([ProductAssemblyID]<>[ComponentID])
 
| ([ProductAssemblyID]<>[ComponentID])
Line 133: Line 135:
 
| '''Column
 
| '''Column
 
| '''Referenced Column
 
| '''Referenced Column
 
+
|- valign="top"
+
|-
 
| [[Production.Product_(table)|Production.Product]]
 
| [[Production.Product_(table)|Production.Product]]
 
| ComponentID
 
| ComponentID
 
| ProductID
 
| ProductID
|- valign="top"
+
|-
 
| [[Production.Product_(table)|Production.Product]]
 
| [[Production.Product_(table)|Production.Product]]
 
| ProductAssemblyID
 
| ProductAssemblyID
 
| ProductID
 
| ProductID
|- valign="top"
+
|-
 
| [[Production.UnitMeasure_(table)|Production.UnitMeasure]]
 
| [[Production.UnitMeasure_(table)|Production.UnitMeasure]]
 
| UnitMeasureCode
 
| UnitMeasureCode
Line 155: Line 157:
 
| '''Referenced Object
 
| '''Referenced Object
  
|- valign="top"
+
|-
 
| Schema
 
| Schema
 
| Schema
 
| Schema
Line 169: Line 171:
 
| '''Referencing Object
 
| '''Referencing Object
  
|- valign="top"
+
|-
 
| Select
 
| Select
 
| Procedure
 
| Procedure
 
| [[dbo.uspGetBillOfMaterials_(procedure)|dbo.uspGetBillOfMaterials]]
 
| [[dbo.uspGetBillOfMaterials_(procedure)|dbo.uspGetBillOfMaterials]]
  
|- valign="top"
+
|-
 
| Select
 
| Select
 
| Procedure
 
| Procedure

Please note that all contributions to dbscript Online Help may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Project:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)