Commit 05d5401f authored by Gaetan Carabetta's avatar Gaetan Carabetta

Update requetes.sql

parent fd10da9c
......@@ -13,10 +13,10 @@ GROUP BY P.nomMolec;
/* Requete pour le nombre de comprimé prescrit
à un animal */
SELECT P.nomMolec as medicament, COUNT(*)*P.duree*P.nbJourna as nombre_comprime
SELECT P.nomMolec as medicament, SUM(P.duree*P.nbJourna) as nombre_comprime
FROM Posologie P
WHERE idAnimal= $idAnimal
GROUP BY P.nomMolec, P.duree, P.nbJourna;
GROUP BY P.nomMolec;
/***********************************/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment