I have a self join query that creates a bill of material for 6 levels deep. The fields are:
PartNmbr
Item Class
Level
ChildPartNmbr
QtyReq
The above fields repeat 5 times. I want to sum the "QtyReq" for each parent part number ("PartNmbr") where "Item Class = 43" for each "ChildPartNmbr" on all levels.
The difficulty for me is that the "Item Class" of "43" may be on multiple levels of the bill.
Thanks much!
PartNmbr
Item Class
Level
ChildPartNmbr
QtyReq
The above fields repeat 5 times. I want to sum the "QtyReq" for each parent part number ("PartNmbr") where "Item Class = 43" for each "ChildPartNmbr" on all levels.
The difficulty for me is that the "Item Class" of "43" may be on multiple levels of the bill.
Thanks much!