Mettre à jour 'request.sql'
This commit is contained in:
parent
c0cef6401d
commit
ef5185d5c2
1 changed files with 8 additions and 8 deletions
14
request.sql
14
request.sql
|
@ -46,10 +46,10 @@ ORDER BY nb_publi DESC LIMIT 1;
|
||||||
|
|
||||||
--Yasmine QUESTION 5 A tester enc
|
--Yasmine QUESTION 5 A tester enc
|
||||||
|
|
||||||
Select idDoctorant, count(distinct idPublication) as NombrePublication
|
SELECT idDoctorant, count(distinct idPublication) as NombrePublication
|
||||||
From Doctorant D
|
FROM Doctorant D
|
||||||
Left join Publie_Doctorant PD on PD,idDoctorant= D,idDoctorant
|
LEFT JOIN Publie_Doctorant PD on PD.idDoctorant= D.idDoctorant
|
||||||
Group By idDoctorant;
|
GROUP BY idDoctorant;
|
||||||
|
|
||||||
|
|
||||||
--Yasmine QUESTION 8
|
--Yasmine QUESTION 8
|
||||||
|
@ -74,14 +74,14 @@ GROUP BY annee ;
|
||||||
SELECT Count(Distinct E,idEnseignant)
|
SELECT Count(Distinct E,idEnseignant)
|
||||||
FROM Enseignant-chercheur E,Personnel P ,Scientifique S
|
FROM Enseignant-chercheur E,Personnel P ,Scientifique S
|
||||||
WHERE P.idPersonnel=S.idScientifique
|
WHERE P.idPersonnel=S.idScientifique
|
||||||
AND S.idScientifique=E,idEnseignant
|
AND S.idScientifique=E.idEnseignant
|
||||||
GROUP BY idEtablissement ;
|
GROUP BY idEtablissement ;
|
||||||
|
|
||||||
-- Yasmine QUESTION 19
|
-- Yasmine QUESTION 19
|
||||||
|
|
||||||
SELECT idEtablissement, Count(Distinct idEnseignant)
|
SELECT idEtablissement, Count(Distinct idEnseignant)
|
||||||
From Enseignant-chercheur
|
FROM Enseignant-chercheur
|
||||||
Group by idEtablissement
|
GROUP idEtablissement
|
||||||
HAVING count(Distinct idEnseignant) >= 50 ;
|
HAVING count(Distinct idEnseignant) >= 50 ;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue