Re: Problème de requête pour Einstein en herbe |
Sujet: Re: Problème de requête pour Einstein en herbe par GoZeub sur 18/5/2004 10:44:58 Bon bah même en enlevant la mise en commentaire ça foire quand même mais à une fréquence moins élévée... c'est aléatoire c'est la merde. Sinon pour info j'appelle cette procédure lors de la sélection d'une combo période. Lors du débugage cela marche toujours... Windev peut-il être mis en cause ??? (version 8.00 cKd) Après le code d'affichage dans la table voici la requête à proprement parlé: SELECT Demande_Des_Affectation.IDDemande_Des_Affectation AS IDDemande_Des_Affectation, Demande_Des_Affectation.Etat AS Etat, Demande_Des_Affectation.Date AS Date, Demande_Des_Affectation.DateLivraison AS DateLivraison, Demande_Des_Affectation.Qte AS Qte, Demande_Des_Affectation.Qte_Initiale AS Qte_Ini, Demande_Des_Affectation.Affectation AS Type, Demande_Des_Affectation.Motif AS Motif, Demande_Des_Affectation.Observations AS Observations, Demande_Des_Affectation.Qte_EnCours AS Qte_EnCours, Demande_Des_Affectation.Traitee AS Traite, Demande_Des_Affectation.IDCentre_Production_Traitant AS IDTraitant, Demande_Des_Affectation.IDResponsable AS IDResponsable, Centre_Production.Nom AS CentreProd, Produit.Nom AS Nom, Emballage.Type AS Emballage, Emballage.NbBouteilles AS NbBtl, Utilisateur.Nom AS Utilisateur FROM Produit, Demande_Des_Affectation, Utilisateur, Emballage,Centre_Production, (SELECT DISTINCT IDProduit FROM Recette WHERE Recette.IDMatiere_Premiere = {Param4}) AS Recette WHERE Produit.IDProduit = Demande_Des_Affectation.IDProduit AND Produit.IDProduit = Recette.IDProduit AND Utilisateur.IDUtilisateur = Demande_Des_Affectation.IDDemandeur AND Emballage.IDEmballage = Demande_Des_Affectation.IDEmballage AND Centre_Production.IDCentre_Production = Demande_Des_Affectation.IDCentre_Production AND Produit.IDProduit = {Param1} AND Produit.Famille LIKE {Param2} AND Emballage.IDEmballage = {Param3} AND Produit.Groupe LIKE {Param5} AND Utilisateur.IDUtilisateur = {Param6} AND Demande_Des_Affectation.Date BETWEEN {Param7} AND {Param8} AND Demande_Des_Affectation.Affectation = {Param9} AND Utilisateur.IDSite = {Param10} AND Demande_Des_Affectation.Etat = {Param11} AND Demande_Des_Affectation.IDCentre_Production = {Param12} ORDER BY Date ASC |