correction du tables pour ajout de types classConf et echelon
This commit is contained in:
commit
3e7ba6c442
2 changed files with 78 additions and 14 deletions
66
insert.sql
66
insert.sql
|
@ -182,9 +182,9 @@ INSERT INTO Auteur_Externe VALUES (
|
|||
|
||||
INSERT INTO Auteur_Externe VALUES (
|
||||
3,
|
||||
'Paul',
|
||||
'Hugo',
|
||||
'paulo@mail.com',
|
||||
'Pascal',
|
||||
'Gerard',
|
||||
'gege@mail.com',
|
||||
1
|
||||
);
|
||||
|
||||
|
@ -299,6 +299,24 @@ INSERT INTO Publication VALUES (
|
|||
500
|
||||
);
|
||||
|
||||
INSERT INTO Publication VALUES (
|
||||
004,
|
||||
'Physique quantique',
|
||||
DATE '2017-12-03',
|
||||
'Physique',
|
||||
113,
|
||||
1520
|
||||
);
|
||||
|
||||
INSERT INTO Publication VALUES (
|
||||
005,
|
||||
'La nourriture en France',
|
||||
DATE '2022-12-03',
|
||||
'IEE',
|
||||
112,
|
||||
20
|
||||
);
|
||||
|
||||
INSERT INTO Publie_Doctorant VALUES (
|
||||
1,
|
||||
2
|
||||
|
@ -329,6 +347,48 @@ INSERT INTO Publie_Scientifique VALUES (
|
|||
2
|
||||
);
|
||||
|
||||
INSERT INTO Publie_Scientifique VALUES (
|
||||
4,
|
||||
2
|
||||
);
|
||||
|
||||
INSERT INTO Publie_Scientifique VALUES (
|
||||
4,
|
||||
3
|
||||
);
|
||||
|
||||
|
||||
INSERT INTO Publie_Externe VALUES (
|
||||
1,
|
||||
0
|
||||
);
|
||||
|
||||
INSERT INTO Publie_Externe VALUES (
|
||||
1,
|
||||
3
|
||||
);
|
||||
|
||||
INSERT INTO Publie_Externe VALUES (
|
||||
2,
|
||||
2
|
||||
);
|
||||
|
||||
INSERT INTO Publie_Externe VALUES (
|
||||
3,
|
||||
1
|
||||
);
|
||||
|
||||
INSERT INTO Publie_Externe VALUES (
|
||||
4,
|
||||
1
|
||||
);
|
||||
|
||||
INSERT INTO Publie_Externe VALUES (
|
||||
4,
|
||||
3
|
||||
);
|
||||
|
||||
|
||||
--Yasmine
|
||||
INSERT INTO Evenememnt VALUES (
|
||||
0001,INSERT INTO
|
||||
|
|
26
request.sql
26
request.sql
|
@ -95,7 +95,7 @@ GROUP BY idDoctorant;
|
|||
--Yasmine QUESTION 8
|
||||
|
||||
SELECT idEnseignant
|
||||
FROM Enseignant-chercheur
|
||||
FROM Enseignant_chercheur
|
||||
NOT IN ( (SELECT idScientifique
|
||||
FROM Publie_scientifique)
|
||||
UNION
|
||||
|
@ -103,6 +103,7 @@ NOT IN ( (SELECT idScientifique
|
|||
FROM Encadrement)
|
||||
) ;
|
||||
|
||||
<<<<<<< HEAD
|
||||
|
||||
-- Axel Q12
|
||||
SELECT idEnseignant FROM Enseignant_Chercheur ec
|
||||
|
@ -117,28 +118,31 @@ WHERE pub.classeConf = 'A';
|
|||
|
||||
|
||||
-- Yasmine QUESTION 14
|
||||
=======
|
||||
-- Yasmine QUESTION 14 Testé
|
||||
>>>>>>> af456634e468d2a6e5d3dbc4e169d73853af5baf
|
||||
|
||||
SELECT Count(Distinct idPublication)
|
||||
FROM Publication
|
||||
GROUP BY annee ;
|
||||
GROUP BY publication.annee;
|
||||
|
||||
-- Yasmine QUESTION 15
|
||||
-- Yasmine QUESTION 15 Testé PAS D'ERREUR DE SYNTAXE
|
||||
|
||||
SELECT Count(Distinct E,idEnseignant)
|
||||
FROM Enseignant-chercheur E,Personnel P ,Scientifique S
|
||||
SELECT Count(Distinct E.idEnseignant)
|
||||
FROM Enseignant_chercheur E,Personnel P ,Scientifique S
|
||||
WHERE P.idPersonnel=S.idScientifique
|
||||
AND S.idScientifique=E.idEnseignant
|
||||
GROUP BY idEtablissement ;
|
||||
GROUP BY idEtablissement;
|
||||
|
||||
-- Yasmine QUESTION 19
|
||||
-- Yasmine QUESTION 19 Testé PAS D'ERREUR DE SYNTAXE
|
||||
|
||||
SELECT idEtablissement, Count(Distinct idEnseignant)
|
||||
FROM Enseignant-chercheur
|
||||
FROM Enseignant_chercheur
|
||||
GROUP BY idEtablissement
|
||||
HAVING count(Distinct idEnseignant) >= 50 ;
|
||||
HAVING count(Distinct idEnseignant) >= 50;
|
||||
|
||||
|
||||
--Yasmine QUESTION 21
|
||||
--Yasmine QUESTION 21 Testé PAS D'ERREUR DE SYNTAXE
|
||||
|
||||
SELECT Distinct P.Pays
|
||||
FROM Partenaire P, Participe_externe PEX
|
||||
|
@ -150,5 +154,5 @@ and not exists (Select *
|
|||
|
||||
From Participe_externe PEX2
|
||||
Where PEX2.idPartenaire=P.idPartenaire and
|
||||
PEX2.idPr=PR.idProjet));
|
||||
PEX2.idProjet=PR.idProjet));
|
||||
|
||||
|
|
Loading…
Reference in a new issue