Quantité totale nomenclature
Dans le select de recherche nomenclature multi niveaux, comment multiplier les quantités des différents niveaux ?
Code:
1 2 3 4 5 6 7 8 9 10 11
|
Select
rownum,
level,
t1.ComposantParent,
t1.ComposantEnfant,
t1.Quantite,
???
from TableNomenclature t1
start with t1.ComposantParent = 'RefProduit'
connect by prior t1.ComposantEnfant = t1.ComposantParent |
Ex :
Parent Enfant __ Quantite __ ??? _____ Commentaire
C1___C2__________10____10______(10 => 10 C2)
C2___C3__________2_____20______(10*2 => 20 C3)
C3___C4__________5_____100_____(10*2*5 => 100 C4)