Compare commits

...

2 commits

Author SHA1 Message Date
Olougouna Axel
a397fd1016 q20 2023-01-05 09:42:48 +01:00
Olougouna Axel
5c16d82893 q20 2023-01-05 09:40:05 +01:00

View file

@ -1,7 +1,7 @@
-- | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -- | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
-- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+ -- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+
-- Axel | | | O | O | | | | | | | | O | O | | | | | | | | | -- Axel | | | O | O | | | | | | | | O | O | | | | | | | 0 | |
-- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+ -- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+
-- Ronan | | O | | | | O | | | | O | | | | | | x | | | | | | -- Ronan | | O | | | | O | | | | O | | | | | | x | | | | | |
-- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+ -- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+
@ -201,6 +201,21 @@ FROM Enseignant_chercheur
GROUP BY idEtablissement GROUP BY idEtablissement
HAVING count(Distinct idEnseignant) >= 50; HAVING count(Distinct idEnseignant) >= 50;
-- Axel Question 20 ecrite et testée
SELECT idScientifique, nb_proj FROM
(SELECT idScientifique, COUNT(DISTINCT idProjet) AS nb_proj FROM Participe
GROUP BY idScientifique) AS ScientPub
JOIN (SELECT MAX(nb_proj) AS nbmax FROM
(SELECT idScientifique, COUNT(DISTINCT idProjet) AS nb_proj FROM Participe
GROUP BY idScientifique) AS Scient) AS Sc
ON Sc.nbmax = ScientPub.nb_proj;
--WHERE ScientPub.nb_publie_S = SC.nbmax ;
--Yasmine QUESTION 21 Testé --Yasmine QUESTION 21 Testé
SELECT Distinct P.Pays SELECT Distinct P.Pays