diff --git a/insert.sql b/insert.sql index 0378cc3..e0c360f 100644 --- a/insert.sql +++ b/insert.sql @@ -363,6 +363,11 @@ INSERT INTO Projet(titre, acronyme, annee_debut, annee_fin, duree, budget_Laas, -- -- ---------------------------------------------------------------------- +INSERT INTO Participe VALUES ( + 1, + 5 +); + ---------------------------------------------------------------------- -- -- -- Preside -- diff --git a/request.sql b/request.sql index 88eba79..0168253 100644 --- a/request.sql +++ b/request.sql @@ -136,7 +136,15 @@ GROUP BY pays ORDER BY nb_publi DESC LIMIT 1; - +-- Nathan tested +SELECT * FROM Scientifique +WHERE idScientifique IN ( + SELECT idScientifique FROM ( + SELECT idScientifique, COUNT(DISTINCT idProjet) AS nbProjets FROM Participe + GROUP BY idScientifique + ) AS Taux_Participation + WHERE nbProjets = 1 +); -- Yasmine QUESTION 19 Testé