crystalreporting
Instructor
I have the following statement that creates a file from the output of a function - it works perfectly:
insert into Flattened_BOM_SQL (low_level,Par_item_no,Comp_Item_no,Qty_Per_Parent,Extended_Qty_Per_Parent,Processed,sort_order)
select low_level,Par_item_no,Comp_Item_no,Qty_Per_Parent,Extended_Qty_Per_Parent,Processed,sort_order from fn_Flatten_BOM('WIDGET') ORDER BY sort_order
In the example above, this would run for the item 'WIDGET' which is a record in a inventory table. I'd like to create a statement that I can schedule nightly that will read all of the items in the inventory table (Item_Master_SQL) and create the Flattened_BOM_SQL table using the code above.
What is the structure I need in order to accomplish this?
Peter Shirley
insert into Flattened_BOM_SQL (low_level,Par_item_no,Comp_Item_no,Qty_Per_Parent,Extended_Qty_Per_Parent,Processed,sort_order)
select low_level,Par_item_no,Comp_Item_no,Qty_Per_Parent,Extended_Qty_Per_Parent,Processed,sort_order from fn_Flatten_BOM('WIDGET') ORDER BY sort_order
In the example above, this would run for the item 'WIDGET' which is a record in a inventory table. I'd like to create a statement that I can schedule nightly that will read all of the items in the inventory table (Item_Master_SQL) and create the Flattened_BOM_SQL table using the code above.
What is the structure I need in order to accomplish this?
Peter Shirley