question 13 tested

This commit is contained in:
Olougouna Axel 2022-12-16 09:17:00 +01:00
parent 1f55276c20
commit 448879958c

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 |
-- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+
-- Axel | | | O | O | | | | | | | | x | | | | | | | | | |
-- Axel | | | O | O | | | | | | | | x | O | | | | | | | | |
-- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+
-- Ronan | | O | | | | O | | | | x | | | | | | x | | | | | |
-- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+
@ -137,14 +137,14 @@ WHERE pub.classeConf = 'A' AND pub.classeConf NOT IN ('A*', 'B', 'C');
--RIGHT JOIN Publication pub ON pub.idPublication = ps.idScientifique
--WHERE pub.classeConf IN 'A*', 'A', 'B', 'C';
-- Axel Q13
SELECT p.idScientifique, p.nom, p.prenom FROM Personnel p
-- Axel Q13 tested
SELECT DISTINCT p.idPersonnel, p.nom, p.prenom FROM Personnel p
JOIN Enseignant_Chercheur ec ON ec.idEnseignant = p.idPersonnel
RIGHT JOIN Encadrement encad1 on encad1.idEnseignant = ec.idEnseignant
RIGHT JOIN Encadrement encad1 ON ec.idEnseignant = encad1.idScientifique
WHERE ec.idEnseignant = encad1.idScientifique
AND NOT EXISTS (SELECT * FROM Doctorant doc
WHERE NOT EXISTS(SELECT * FROM Encadrement encad2
WHERE encad2.idScientifique = ec.idScientifique
WHERE encad2.idScientifique = ec.idEnseignant
AND encad2.idDoctorant = doc.idDoctorant));
-- Yasmine QUESTION 14 Testé