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é
|
--Yasmine QUESTION 8 Testé
|
||||||
SELECT EC.idEnseignant,P.nom,P.prenom
|
SELECT EC.idEnseignant,P.nom,P.prenom
|
||||||
FROM Enseignant_chercheur EC, Personnel P
|
FROM Enseignant_chercheur EC, Personnel P
|
||||||
WHERE P.idPersonnel=EC.idEnseignant
|
WHERE P.idPersonnel=EC.idEnseignant and idEnseignant
|
||||||
AND EC.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)
|
);
|
||||||
);
|
|
||||||
|
|
||||||
-- Nathan Q9 tested
|
-- Nathan Q9 tested
|
||||||
SELECT nom, prenom FROM Personnel
|
SELECT nom, prenom FROM Personnel
|
||||||
|
|
@ -111,14 +110,12 @@ WHERE idPersonnel IN (
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Ronan Q10
|
-- Ronan Q10
|
||||||
SELECT idDoctorant, nom, prenom FROM (
|
SELECT e.idDoctorant, nom, prenom, COUNT(*) FROM Encadrement e
|
||||||
SELECT e.idDoctorant, nom, prenom, COUNT(*) FROM Encadrement e
|
JOIN Scientifique s ON e.idScientifique=s.idScientifique
|
||||||
JOIN Scientifique s ON e.idScientifique=s.idScientifique
|
JOIN Doctorant d ON e.idDoctorant=d.idDoctorant
|
||||||
JOIN Doctorant d ON e.idDoctorant=d.idDoctorant
|
RIGHT JOIN Personnel p ON d.idDoctorant=p.idPersonnel
|
||||||
RIGHT JOIN Personnel p ON d.idDoctorant=p.idPersonnel
|
GROUP BY e.idDoctorant, nom, prenom
|
||||||
GROUP BY e.idDoctorant, nom, prenom
|
HAVING COUNT(DISTINCT s.idScientifique)=1;
|
||||||
HAVING COUNT(DISTINCT s.idScientifique)=1
|
|
||||||
);
|
|
||||||
|
|
||||||
-- Nathan Q11 tested
|
-- Nathan Q11 tested
|
||||||
SELECT idPersonnel, nom, prenom, nbEtudiant FROM Personnel, (
|
SELECT idPersonnel, nom, prenom, nbEtudiant FROM Personnel, (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue