danbtaylor
New Member
- Joined
- Oct 1, 2013
- Messages
- 1
I am trying to break down the following 2-column table to include only each 'FinishedGood' and all its 'Inventory Parts' broken down to the 'Component' level. I want to replace each 'SubAssembly' Inventory Part with its corresponding 'Components':
Source Format:
<tbody>
</tbody>
Desired Format:
<tbody>
</tbody>
A FinishedGood may be comprised of a SubAssembly, a Component, another FinishedGood, or any combination of such. A SubAssembly may be part of multiple distinct FinishedGoods, and a component may be part of multiple distinct SubAssemblies
This information changes daily, and is updated through an ODBC data source, so automating the process is crucial.
I've tried creating separate tables for each stage, i.e., FinishedGoods, SubAssembly, etc., and relating them, however I've had no luck. I've also tried SQL queries to no avail.
Source Format:
Assembly Item | Inventory Part |
FinishedGood1 | Component1 |
FinishedGood1 | SubAssembly1 |
SubAssembly1 | Component2 |
SubAssembly1 | Component3 |
SubAssembly1 | Component4 |
SubAssembly1 | SubSubAssembly1 |
SubSubAssembly1 | Component5 |
SubSubAssembly1 | Component6 |
<tbody>
</tbody>
Desired Format:
Assembly Item | Inventory Part |
FinishedGood1 | Component1 |
FinishedGood1 | Component2 |
FinishedGood1 | Component3 |
FinishedGood1 | Component4 |
FinishedGood1 | Component5 |
FinishedGood1 | Component6 |
<tbody>
</tbody>
A FinishedGood may be comprised of a SubAssembly, a Component, another FinishedGood, or any combination of such. A SubAssembly may be part of multiple distinct FinishedGoods, and a component may be part of multiple distinct SubAssemblies
This information changes daily, and is updated through an ODBC data source, so automating the process is crucial.
I've tried creating separate tables for each stage, i.e., FinishedGoods, SubAssembly, etc., and relating them, however I've had no luck. I've also tried SQL queries to no avail.