Bijour!
j ai une requete mais il me dit: expression de jointure non supporté.
SELECT LigneProduction.NumBP, Composant.CodeComp, Composant.DesComp, Composant.TypeComp, Sum([qtécompPdt]*[qttedme]) AS Stock, LigneCommandeComp.QtéComp, Commande_comp.DateLComp, Sum(Stocker.qttestock) AS SommeDeqttestock FROM ((((((LigneProduction INNER JOIN Produit ON LigneProduction.NumProd = Produit.CodePdt) INNER JOIN Produit_composer ON Produit.CodePdt = Produit_composer.codePdt) INNER JOIN Composant ON Produit_composer.codeComp = Composant.CodeComp) LEFT JOIN Stocker ON Composant.CodeComp = Stocker.NumComposant) INNER JOIN Entrepot ON Stocker.NumEntrepot = Entrepot.CodeEntrepot) LEFT JOIN LigneCommandeComp ON Composant.CodeComp = LigneCommandeComp.NumComp) INNER JOIN Commande_comp ON LigneCommandeComp.NumcdeComp = Commande_comp.NumcdeComp) GROUP BY LigneProduction.NumBP, Composant.CodeComp, Composant.DesComp, Composant.TypeComp, LigneCommandeComp.QtéComp, Commande_comp.DateLComp;
|
Je pense que c est parce que je fait 2 left join. Je pense qu il faut depuis une requete en appeler une autre mais je sais pas si c est possible d imbriqué 2 requetes et si oui comment on fait???
Merci
Amaya
