This commit is contained in:
Bonnet Ronan 2022-12-09 11:40:51 +01:00
commit ee562fc1b6
2 changed files with 25 additions and 3 deletions

View file

@ -85,10 +85,16 @@ INSERT INTO Partenaire VALUES (
INSERT INTO Doctorant VALUES (
4,
DATE '2020-23-06',
DATE '2020-06-23',
DATE '2023-08-03'
);
INSERT INTO Doctorant VALUES (
1,
DATE '2019-07-13',
DATE '2020-11-08'
);
iNSERT INTO Doctorant VALUES (
2,
DATE '2021-07-30',
@ -116,6 +122,10 @@ INSERT INTO Encadrement VALUES (
2
);
INSERT INTO Encadrement VALUES (
2,
3
);
INSERT INTO Labo_externe VALUES (
1,
'CNES',

View file

@ -3,8 +3,8 @@
--SELECT COUNT(id)
--FROM SELECT idScientifique FROM Enseignant_Chercheur
-- WHERE idScientifique = 01;
SELECT COUNT(idPublication) as nbCollab FROM Publication
WHERE classeConf = 'A';
--SELECT COUNT(idPublication) as nbCollab FROM Publication
--WHERE classeConf = 'A';
-- Nathan Q1
SELECT Personnel.nom, Scientifique.grade FROM Personnel, Scientifique
@ -25,6 +25,18 @@ WHERE perso.nom = 'Azi'
AND annee >= '2016-01-01'
AND annee <= '2020-01-01';
--Axel Q3
SELECT COUNT(DISTINCT idAuteurExterne) AS nbCollab FROM Publie_Externe pe
JOIN Publie_Scientifique ps ON pe.idPublication = ps.idPublication
RIGHT JOIN Publie_Doctorant pdoc ON pe.idPublication = pdoc.idPublication
JOIN Enseignant_Chercheur ec ON ec.idEnseignant = ps.idScientifique
WHERE idScientifique = '01';
-- Axel Q4
SELECT COUNT(DISTINCT ) as nbPaysCollab FROM Publication
WHERE classeConf = 'A';
-- Nathan Q5
SELECT idDoctorant, COUNT(idPublication) FROM Publie_Doctorant
GROUP BY idDoctorant;