added data to test Q8
This commit is contained in:
parent
91911825ef
commit
77e26c8927
2 changed files with 16 additions and 5 deletions
11
insert.sql
11
insert.sql
|
@ -130,6 +130,11 @@ INSERT INTO Scientifique VALUES (
|
|||
'mcf hors classe'
|
||||
);
|
||||
|
||||
INSERT INTO Scientifique VALUES (
|
||||
7,
|
||||
'mcf'
|
||||
);
|
||||
|
||||
----------------------------------------------------------------------
|
||||
-- --
|
||||
-- Etablissement --
|
||||
|
@ -170,6 +175,12 @@ INSERT INTO Enseignant_Chercheur VALUES (
|
|||
'2'
|
||||
);
|
||||
|
||||
INSERT INTO Enseignant_Chercheur VALUES (
|
||||
7,
|
||||
1,
|
||||
'5'
|
||||
);
|
||||
|
||||
----------------------------------------------------------------------
|
||||
-- --
|
||||
-- Evenement --
|
||||
|
|
10
request.sql
10
request.sql
|
@ -3,9 +3,9 @@
|
|||
-- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
-- Axel | | | O | O | | | | | | | | x | | | | | | | | | |
|
||||
-- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
-- Ronan | | O | | | | x | | | | x | | | | | | x | | | | | |
|
||||
-- Ronan | | O | | | | O | | | | x | | | | | | x | | | | | |
|
||||
-- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
-- Yasmine | | | | | O | | | O | | | | | | O | O | | | | O | | O |
|
||||
-- Yasmine | | | | | O | | | x | | | | | | O | O | | | | O | | O |
|
||||
-- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
-- Nathan | O | | | | | | O | | O | | O | | | | | | O | | | | |
|
||||
-- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
|
@ -72,7 +72,7 @@ SELECT iddoctorant, count(distinct idPublication) as NombrePublication
|
|||
FROM publie_doctorant
|
||||
GROUP BY idDoctorant;
|
||||
|
||||
-- Ronan Q6
|
||||
-- Ronan Q6 tested
|
||||
SELECT COUNT(*) FROM Doctorant
|
||||
WHERE date_soutenance < NOW();
|
||||
|
||||
|
@ -85,7 +85,7 @@ WHERE idPersonnel IN (
|
|||
)
|
||||
);
|
||||
|
||||
--Yasmine QUESTION 8 Testé
|
||||
--Yasmine QUESTION 8
|
||||
SELECT EC.idEnseignant,P.nom,P.prenom
|
||||
FROM Enseignant_chercheur EC, Personnel P
|
||||
WHERE P.idPersonnel=EC.idEnseignant
|
||||
|
@ -118,7 +118,7 @@ SELECT idDoctorant, nom, prenom FROM (
|
|||
RIGHT JOIN Personnel p ON d.idDoctorant=p.idPersonnel
|
||||
GROUP BY e.idDoctorant, nom, prenom
|
||||
HAVING COUNT(DISTINCT s.idScientifique)=1
|
||||
);
|
||||
) DoctorantInfo;
|
||||
|
||||
-- Nathan Q11 tested
|
||||
SELECT idPersonnel, nom, prenom, nbEtudiant FROM Personnel, (
|
||||
|
|
Loading…
Reference in a new issue