1 2 3 4 5
|
INSERT INTO tblLiaisonChargeLongue ( IdClient, OV, idArticle, idADV, idPlanner, IdLigne, Qté, [Magasin expedition], [Point expedition], [Dte Ddée EXW], [Dte Expédition], [Dte expédition modifiée], Retard, [Code Blocage], [Motif Blocage], [Blocage livraison], [Statut des OF], [OF], [Dte Fin Prévue], idCAP )
SELECT tblClient.IdClient, tblRéceptionXlsChargeLongue.OV, tblArticle.idArticle, tblADV.idADV, tblPlanificateur.idPlanner, tblLigne.IdLigne, tblRéceptionXlsChargeLongue.Qté, tblRéceptionXlsChargeLongue.[Magasin expedition], tblRéceptionXlsChargeLongue.[Point expedition], tblRéceptionXlsChargeLongue.[Dte Ddée EXW], tblRéceptionXlsChargeLongue.[Dte Expédition], tblRéceptionXlsChargeLongue.[Dte expédition modifiée], tblRéceptionXlsChargeLongue.Retard, tblRéceptionXlsChargeLongue.[Code Blocage], tblRéceptionXlsChargeLongue.[Motif Blocage], tblRéceptionXlsChargeLongue.[Blocage livraison], tblRéceptionXlsChargeLongue.[Statut des OF], tblRéceptionXlsChargeLongue.OF, tblRéceptionXlsChargeLongue.[Dte Fin Prévue], tblCAP.idCAP
FROM tblADV INNER JOIN (tblArticle INNER JOIN (tblCAP INNER JOIN (tblPlanificateur INNER JOIN (tblLigne INNER JOIN (tblClient INNER JOIN tblRéceptionXlsChargeLongue ON tblClient.[Code Client] = tblRéceptionXlsChargeLongue.[Code Client]) ON tblLigne.Ligne = tblRéceptionXlsChargeLongue.Ligne) ON tblPlanificateur.Planificateur = tblRéceptionXlsChargeLongue.Planificateur) ON tblCAP.CAP = tblRéceptionXlsChargeLongue.CAP) ON tblArticle.[Code Article] = tblRéceptionXlsChargeLongue.[Code Article]) ON tblADV.ADV = tblRéceptionXlsChargeLongue.ADV
GROUP BY tblClient.IdClient, tblRéceptionXlsChargeLongue.OV, tblArticle.idArticle, tblADV.idADV, tblPlanificateur.idPlanner, tblLigne.IdLigne, tblRéceptionXlsChargeLongue.Qté, tblRéceptionXlsChargeLongue.[Magasin expedition], tblRéceptionXlsChargeLongue.[Point expedition], tblRéceptionXlsChargeLongue.[Dte Ddée EXW], tblRéceptionXlsChargeLongue.[Dte Expédition], tblRéceptionXlsChargeLongue.[Dte expédition modifiée], tblRéceptionXlsChargeLongue.Retard, tblRéceptionXlsChargeLongue.[Code Blocage], tblRéceptionXlsChargeLongue.[Motif Blocage], tblRéceptionXlsChargeLongue.[Blocage livraison], tblRéceptionXlsChargeLongue.[Statut des OF], tblRéceptionXlsChargeLongue.OF, tblRéceptionXlsChargeLongue.[Dte Fin Prévue], tblCAP.idCAP; |
Partager