Update requetes.sql

parent 6ceb4291
......@@ -13,10 +13,10 @@ GROUP BY P.nomMolec;
/* Requete pour le nombre de comprimé prescrit
à un animal */
SELECT P.nomMolec as medicament, SUM(P.duree*P.nbJourna) as nombre_comprime
FROM Posologie P
WHERE idAnimal= $idAnimal
GROUP BY P.nomMolec;
select P.nomMolec,SUM(P.duree*P.nbJourna) FROM Posologie P
JOIN Traitement T ON P.traitement=T.idTraitement WHERE
T.idAnimal=$idAnimal 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