Update Rendu 4/main.py
Compare changes
+ 24
− 1
@@ -357,7 +357,7 @@ def taille_poids():
@@ -448,6 +448,29 @@ def veterinaire_suivant_un_animal(nom_animal):
sql = f"SELECT m.molecule, (t.duree * p.quantite * COUNT(*)) AS nombre FROM Medicament m INNER JOIN Prescrit p ON m.molecule = p.medicament INNER JOIN Traitement t ON p.traitement = t.id WHERE t.date_debut - '{date_debut}' > 0 AND '{date_fin}' - t.date_debut > t.duree GROUP BY m.molecule, t.duree, p.quantite;"