sql="SELECT P.medicament, SUM(P.quantite) FROM Traitements T, Prescriptions P WHERE T.animal = "+str(id)+"AND P.traitement = T.id GROUP BY P.medicament"
elif(choix==3):
nomMolecule=input("Entrez nom de molecule: ");
sql="SELECT SUM(P.quantite) AS quantite_prescrite FROM Prescriptions P WHERE P.medicament = \""+nomMolecule+"\""
sql="SELECT SUM(P.quantite) AS quantite_prescrite FROM Prescriptions P WHERE P.medicament = \'"+nomMolecule+"\'"
elif(choix==4):
sql="SELECT M.nomMolecule, SUM(P.quantite) AS quantite_prescrite FROM Prescriptions P, Medicaments M WHERE P.medicament = M.nomMolecule GROUP BY M.nomMolecule;"
elif(choix==5):
sql="SELECT A.espece, AVG(A.derniereTaille) AS taille_moyenne FROM animaux A GROUP BY A.espece"