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