From eb1ecc04482e6eb2fb49a0cb45aeb2f6d0c61ca8 Mon Sep 17 00:00:00 2001 From: nbillard Date: Sun, 11 Dec 2022 07:59:49 +0100 Subject: [PATCH] =?UTF-8?q?ajout=20du=20tableau=20pour=20r=C3=A9f=C3=A9ren?= =?UTF-8?q?cer=20le=20travail?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- request.sql | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/request.sql b/request.sql index b75ab40..22d0725 100644 --- a/request.sql +++ b/request.sql @@ -1,4 +1,25 @@ +-- | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | +-- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+ +-- Axel | | | x | x | | | | | | | | x | | | | | | | | | | +-- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+ +-- Ronan | | O | | | | x | | | | x | | | | | | x | | | | | | +-- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+ +-- Yasmine | | | | | O | | | O | | | | | | O | O | | | | O | | O | +-- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+ +-- Nathan | O | | | | | | O | | O | | O | | | | | | O | | | | | +-- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+ +-- ^ ^ ^ +-- | | | + + +-- x = écrit +-- O = écrit + testé + + + + + --Axel, question 3 et 4 --SELECT COUNT(id) --FROM SELECT idScientifique FROM Enseignant_Chercheur @@ -13,7 +34,7 @@ WHERE idPersonnel = idScientifique AND idPersonnel IN ( WHERE idDoctorant = 4 ); --- Ronan Q2 +-- Ronan Q2 tested SELECT ae.nom, ae.prenom, le.pays FROM Personnel AS perso JOIN Publie_Scientifique ps ON perso.idPersonnel = ps.idScientifique RIGHT JOIN Publication publi ON publi.idPublication = ps.idPublication @@ -42,8 +63,8 @@ JOIN Publication pub ON pub.idPublication = pe.idPublication WHERE pub.classeConf = 'A'; -- Nathan Q5 tested -SELECT idDoctorant, COUNT(idPublication) FROM Publie_Doctorant -GROUP BY idDoctorant; +-- SELECT idDoctorant, COUNT(idPublication) FROM Publie_Doctorant +-- GROUP BY idDoctorant; --Yasmine QUESTION 5 Testé @@ -137,7 +158,7 @@ GROUP BY pays ORDER BY nb_publi DESC LIMIT 1; --- Nathan tested +-- Nathan Q17 tested SELECT * FROM Scientifique WHERE idScientifique IN ( SELECT idScientifique FROM (