Update requetes.sql

parent 5fb67332
......@@ -7,8 +7,8 @@
/* Requête pour la quantité de médicament prescrite
à un animal */
SELECT P.nomMolec as medicament, COUNT(*) as quantite_prescrite
FROM Posologie P
WHERE idAnimal= $idAnimal
FROM Posologie P JOIN Traitement T on P.traitement=T.idTraitement
WHERE T.idAnimal= $idAnimal
GROUP BY P.nomMolec;
/* Requete pour le nombre de comprimé prescrit
......
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