Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Bill of Materials

DuvalSep 18 2013 — edited Sep 18 2013

Oracle Version 10g

I have a table (BOM) with 3 fields (ITEM, COMP_ITEM & COMP_QTY)

ITEM is the parent of COMP_ITEM and COMP_QTY is the quantity of COMP_ITEM's

I want to find all the top-level ITEM's of a given part (where used) and the cumulative quantities (how many X's are in a A ,D and K)

I have looked around many forums but still haven't come up with a working answer. I know I can't use the WITH command as in.... 'WITH bob (a,b,c) as' because my database is not up to the right version. I need to go at most about 10 levels. I have tried nested queries with joins but I just get lost in the syntax.

Could someone please point me in the right direction

This post has been answered by Duval on Sep 18 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 16 2013
Added on Sep 18 2013
22 comments
1,010 views