fix q10
这个提交包含在:
父节点
8dcfa84ed3
当前提交
32ee2dad17
共有 1 个文件被更改,包括 6 次插入 和 4 次删除
10
request.sql
10
request.sql
|
|
@ -68,10 +68,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
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用