Compare commits
No commits in common. "91911825efc9abc8b30bd60647e3e7268c836a0e" and "af3e89bb6ebaa9d362e89cd57e322338bd177d0f" have entirely different histories.
91911825ef
...
af3e89bb6e
1 changed files with 13 additions and 16 deletions
29
request.sql
29
request.sql
|
|
@ -88,14 +88,13 @@ WHERE idPersonnel IN (
|
|||
--Yasmine QUESTION 8 Testé
|
||||
SELECT EC.idEnseignant,P.nom,P.prenom
|
||||
FROM Enseignant_chercheur EC, Personnel P
|
||||
WHERE P.idPersonnel=EC.idEnseignant
|
||||
AND EC.idEnseignant
|
||||
NOT IN ( (SELECT idScientifique
|
||||
FROM Publie_scientifique)
|
||||
UNION
|
||||
(SELECT idScientifique
|
||||
FROM Encadrement)
|
||||
);
|
||||
WHERE P.idPersonnel=EC.idEnseignant and idEnseignant
|
||||
NOT IN ( (SELECT idScientifique
|
||||
FROM Publie_scientifique)
|
||||
UNION
|
||||
(SELECT idScientifique
|
||||
FROM Encadrement)
|
||||
);
|
||||
|
||||
-- Nathan Q9 tested
|
||||
SELECT nom, prenom FROM Personnel
|
||||
|
|
@ -111,14 +110,12 @@ WHERE idPersonnel IN (
|
|||
);
|
||||
|
||||
-- Ronan Q10
|
||||
SELECT idDoctorant, nom, prenom FROM (
|
||||
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
|
||||
);
|
||||
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;
|
||||
|
||||
-- Nathan Q11 tested
|
||||
SELECT idPersonnel, nom, prenom, nbEtudiant FROM Personnel, (
|
||||
|
|
|
|||
Loading…
Reference in a new issue