doctorant
This commit is contained in:
Olougouna Axel 2022-12-09 12:12:04 +01:00
commit 48e7463f11

View file

@ -71,10 +71,12 @@ WHERE idPersonnel IN (
);
-- Ronan Q10
SELECT idDoctorant, nom, prenom, COUNT(*) FROM Encadrement
JOIN Scientifique on idPersonnel=idScientifique
GROUP BY idDoctorant, nom, prenom
HAVING COUNT(DISTINCT idScientifique)=1;
SELECT e.idDoctorant, nom, prenom, COUNT(*) FROM Encadrement e
JOIN Scientifique s ON e.idScientifique=s.idScientifique
JOIN Doctorant d ON e.idDoctorant=d.idDoctorant
RIGHT JOIN Personnel p ON d.idDoctorant=p.idPersonnel
GROUP BY e.idDoctorant, nom, prenom
HAVING COUNT(DISTINCT s.idScientifique)=1;
-- Ronan Q16
SELECT pays, COUNT(*) nb_publi
@ -92,16 +94,17 @@ LEFT JOIN Publie_Doctorant PD on PD.idDoctorant= D.idDoctorant
GROUP BY idDoctorant;
--Yasmine QUESTION 8
--Yasmine QUESTION 8 TESTE PAS D'ERREUR DE SYNTAXE
SELECT idEnseignant
FROM Enseignant_chercheur
WHERE idEnseignant
NOT IN ( (SELECT idScientifique
FROM Publie_scientifique)
UNION
(SELECT idScientifique
FROM Encadrement)
) ;
FROM Publie_scientifique)
UNION
(SELECT idScientifique
FROM Encadrement)
);
-- Axel Q12