Editing Production.BillOfMaterials (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.BillOfMaterials | | Production.BillOfMaterials | ||
− | |- | + | |- |
− | |||
− | |||
|} | |} | ||
− | + | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
Line 17: | Line 15: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | ''' | + | | '''PK |
− | + | | '''Index | |
− | |- | + | |
+ | |- | ||
| BillOfMaterialsID | | BillOfMaterialsID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | PK_BillOfMaterials_BillOfMaterialsID |
− | |- | + | | |
+ | |- | ||
| ProductAssemblyID | | ProductAssemblyID | ||
| int | | int | ||
| null | | null | ||
| | | | ||
− | | | + | | |
− | |- | + | | AK_BillOfMaterials_ProductAssemblyID_ComponentID_StartDate |
+ | |- | ||
| ComponentID | | ComponentID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | |
− | |- | + | | AK_BillOfMaterials_ProductAssemblyID_ComponentID_StartDate |
+ | |- | ||
| StartDate | | StartDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
− | | | + | | |
− | |- | + | | AK_BillOfMaterials_ProductAssemblyID_ComponentID_StartDate |
+ | |- | ||
| EndDate | | EndDate | ||
| datetime | | datetime | ||
| null | | null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| UnitMeasureCode | | UnitMeasureCode | ||
| nchar(3) | | nchar(3) | ||
| not null | | not null | ||
| | | | ||
− | | | + | | |
− | |- | + | | IX_BillOfMaterials_UnitMeasureCode |
+ | |- | ||
| BOMLevel | | BOMLevel | ||
| smallint | | smallint | ||
| not null | | not null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| PerAssemblyQty | | PerAssemblyQty | ||
| decimal(8, 2) | | decimal(8, 2) | ||
| not null | | not null | ||
| ((1.00)) | | ((1.00)) | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| | | | ||
− | | | + | | |
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
Line 133: | Line 90: | ||
| '''Column | | '''Column | ||
| '''Referenced Column | | '''Referenced Column | ||
− | + | ||
− | |- | + | |- |
| [[Production.Product_(table)|Production.Product]] | | [[Production.Product_(table)|Production.Product]] | ||
| ComponentID | | ComponentID | ||
| ProductID | | ProductID | ||
− | |- | + | |- |
| [[Production.Product_(table)|Production.Product]] | | [[Production.Product_(table)|Production.Product]] | ||
| ProductAssemblyID | | ProductAssemblyID | ||
| ProductID | | ProductID | ||
− | |- | + | |- |
| [[Production.UnitMeasure_(table)|Production.UnitMeasure]] | | [[Production.UnitMeasure_(table)|Production.UnitMeasure]] | ||
| UnitMeasureCode | | UnitMeasureCode | ||
| UnitMeasureCode | | UnitMeasureCode | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== automatically generated == | == automatically generated == | ||
Line 188: | Line 110: | ||
| '''Table | | '''Table | ||
| Production.BillOfMaterials | | Production.BillOfMaterials | ||
− | |- | + | |- |
+ | |||
| '''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. | ||
|- | |- | ||
+ | |||
|} | |} | ||
Line 208: | Line 132: | ||
| not null | | not null | ||
| | | | ||
− | | Primary key for BillOfMaterials records. | + | | Primary key for BillOfMaterials records.PK_BillOfMaterials_BillOfMaterialsID |
|- valign="top" | |- valign="top" | ||
| ProductAssemblyID | | ProductAssemblyID | ||
Line 214: | Line 138: | ||
| null | | null | ||
| | | | ||
− | | Parent product identification number. Foreign key to Product.ProductID. | + | | Parent product identification number. Foreign key to Product.ProductID.AK_BillOfMaterials_ProductAssemblyID_ComponentID_StartDate |
|- valign="top" | |- valign="top" | ||
| ComponentID | | ComponentID | ||
Line 220: | Line 144: | ||
| not null | | not null | ||
| | | | ||
− | | Component identification number. Foreign key to Product.ProductID. | + | | Component identification number. Foreign key to Product.ProductID.AK_BillOfMaterials_ProductAssemblyID_ComponentID_StartDate |
|- valign="top" | |- valign="top" | ||
| StartDate | | StartDate | ||
Line 226: | Line 150: | ||
| not null | | not null | ||
| (GETDATE()) | | (GETDATE()) | ||
− | | Date the component started being used in the assembly item. | + | | Date the component started being used in the assembly item.AK_BillOfMaterials_ProductAssemblyID_ComponentID_StartDate |
|- valign="top" | |- valign="top" | ||
| EndDate | | EndDate | ||
Line 232: | Line 156: | ||
| null | | null | ||
| | | | ||
− | | Date the component stopped being used in the assembly item. | + | | Date the component stopped being used in the assembly item. |
|- valign="top" | |- valign="top" | ||
| UnitMeasureCode | | UnitMeasureCode | ||
Line 238: | Line 162: | ||
| not null | | not null | ||
| | | | ||
− | | Standard code identifying the unit of measure for the quantity. | + | | Standard code identifying the unit of measure for the quantity.IX_BillOfMaterials_UnitMeasureCode |
|- valign="top" | |- valign="top" | ||
| BOMLevel | | BOMLevel | ||
Line 244: | Line 168: | ||
| not null | | not null | ||
| | | | ||
− | | Indicates the depth the component is from its parent (AssemblyID). | + | | Indicates the depth the component is from its parent (AssemblyID). |
|- valign="top" | |- valign="top" | ||
| PerAssemblyQty | | PerAssemblyQty | ||
Line 250: | Line 174: | ||
| not null | | not null | ||
| (1.00) | | (1.00) | ||
− | | Quantity of the component needed to create the assembly. | + | | Quantity of the component needed to create the assembly. |
|- valign="top" | |- valign="top" | ||
| ModifiedDate | | ModifiedDate | ||
Line 256: | Line 180: | ||
| not null | | not null | ||
| (GETDATE()) | | (GETDATE()) | ||
− | | Date and time the record was last updated. | + | | Date and time the record was last updated. |
|} | |} | ||
Line 284: | Line 208: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
− | | ''' | + | | '''Referencing Object |
| '''Object Type | | '''Object Type | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| '''Reference Type | | '''Reference Type | ||
− | + | ||
− | |||
− | |||
|- | |- | ||
+ | | [[dbo.uspGetBillOfMaterials_(procedure)|dbo.uspGetBillOfMaterials]] | ||
+ | | Procedure | ||
| Select | | Select | ||
+ | |- | ||
+ | | [[dbo.uspGetWhereUsedProductID_(procedure)|dbo.uspGetWhereUsedProductID]] | ||
| Procedure | | Procedure | ||
− | |||
− | |||
− | |||
| Select | | Select | ||
− | |||
− | |||
− | |||
|} | |} |