This commit is contained in:
Bonnet Ronan 2022-12-09 11:29:43 +01:00
commit 6ac25dd9f1
2 changed files with 49 additions and 33 deletions

View file

@ -1,4 +1,4 @@
INSERT INTO Personnel ( INSERT INTO Personnel VALUES (
0, 0,
'Billard', 'Billard',
'Nathan', 'Nathan',
@ -9,7 +9,7 @@ INSERT INTO Personnel (
--Axel --Axel
INSERT INTO Etablissement( INSERT INTO Etablissement VALUES (
01, 01,
'Institut National des Sciences Appliquées', 'Institut National des Sciences Appliquées',
'INSA', 'INSA',
@ -17,7 +17,7 @@ INSERT INTO Etablissement(
); );
--Axel --Axel
INSERT INTO Etablissement( INSERT INTO Etablissement VALUES (
02, 02,
'Ecole Nationale de l Aviation Civile', 'Ecole Nationale de l Aviation Civile',
'ENAC', 'ENAC',
@ -26,14 +26,14 @@ INSERT INTO Etablissement(
--Axel --Axel
INSERT INTO Etablissement( INSERT INTO Etablissement VALUES (
03, 03,
'Ecole Polytechnique', 'Ecole Polytechnique',
'X', 'X',
'Paris' 'Paris'
); );
INSERT INTO Personnel ( INSERT INTO Personnel VALUES (
1, 1,
'Bonnet', 'Bonnet',
'Ronan', 'Ronan',
@ -42,7 +42,7 @@ INSERT INTO Personnel (
'2020-9-15' '2020-9-15'
); );
INSERT INTO Personnel ( INSERT INTO Personnel VALUES (
2, 2,
'Olougouna', 'Olougouna',
'Axel', 'Axel',
@ -51,7 +51,7 @@ INSERT INTO Personnel (
'2020-9-15' '2020-9-15'
); );
INSERT INTO Personnel ( INSERT INTO Personnel VALUES (
3, 3,
'Grane', 'Grane',
'Yasmine', 'Yasmine',
@ -60,7 +60,7 @@ INSERT INTO Personnel (
'2020-9-15' '2020-9-15'
); );
INSERT INTO Personnel ( INSERT INTO Personnel VALUES (
4, 4,
'Wonderland', 'Wonderland',
'Alice', 'Alice',
@ -77,7 +77,7 @@ INSERT INTO Personnel VALUES (
'au chantier', 'au chantier',
'2020-9-15' '2020-9-15'
);--Axel );--Axel
INSERT INTO Partenaire( INSERT INTO Partenaire VALUES (
01, 01,
'GFGH', 'GFGH',
'Allemagne' 'Allemagne'
@ -102,40 +102,47 @@ INSERT INTO Scientifique VALUES (
INSERT INTO Scientifique VALUES ( INSERT INTO Scientifique VALUES (
2, 2,
'cr1' 'mcf'
); );
INSERT INTO Labo_externe ( INSERT INTO Labo_externe VALUES (
0, 0,
'LAAS', 'LAAS',
'France' 'France'
); );
INSERT INTO Labo_externe ( INSERT INTO Encadrement VALUES (
4,
2
);
INSERT INTO
INSERT INTO Labo_externe VALUES (
1, 1,
'CNES', 'CNES',
'France' 'France'
); );
INSERT INTO Labo_externe ( INSERT INTO Labo_externe VALUES (
2, 2,
'GEAS', 'GEAS',
'Allemagne' 'Allemagne'
); );
INSERT INTO Labo_externe ( INSERT INTO Labo_externe VALUES (
3, 3,
'RUAF', 'RUAF',
'Russie' 'Russie'
); );
INSERT INTO Labo_externe ( INSERT INTO Labo_externe VALUES (
4, 4,
'ENFD', 'ENFD',
'Angleterre' 'Angleterre'
); );
INSERT INTO Labo_externe ( INSERT INTO Labo_externe VALUES (
5, 5,
'LUBN', 'LUBN',
'Luxembourg' 'Luxembourg'
@ -144,14 +151,13 @@ INSERT INTO Labo_externe (
-- Ronan -- Ronan
INSERT INTO Labo_externe ( INSERT INTO Labo_externe VALUES (
6, 6,
'BRBN', 'BRBN',
'Bresil' 'Bresil'
); );
--Yasmine --Yasmine
INSERT INTO Projet ( INSERT INTO Projet (
01, 01,
'BaseDeDonnee', 'BaseDeDonnee',
@ -165,8 +171,7 @@ INSERT INTO Projet (
); );
--Yasmine --Yasmine
INSERT INTO Projet VALUES (
INSERT INTO Projet (
02, 02,
'langC', 'langC',
'C', 'C',
@ -180,43 +185,41 @@ INSERT INTO Projet (
--Axel --Axel
INSERT INTO Partenaire( INSERT INTO Partenaire VALUES (
01, 01,
'GFGH', 'GFGH',
'Allemagne' 'Allemagne'
); );
--Axel --Axel
INSERT INTO Partenaire( INSERT INTO Partenaire VALUES (
02, 02,
'LMC', 'LMC',
'Australie' 'Australie'
); );
--Axel --Axel
INSERT INTO Partenaire( INSERT INTO Partenaire VALUES (
03, 03,
'ESHT', 'ESHT',
'USA' 'USA'
); );
--Axel --Axel
INSERT INTO Partenaire( INSERT INTO Partenaire VALUES (
01, 01,
'HLMY', 'HLMY',
'Japon' 'Japon'
); );
--Axel --Axel
INSERT INTO Partenaire( INSERT INTO Partenaire VALUES (
01, 01,
'MAKL', 'MAKL',
'France' 'France'
); );
--Yasmine --Yasmine
INSERT INTO Projet VALUES (
INSERT INTO Projet (
03, 03,
'Programation web', 'Programation web',
'ProgWeb', 'ProgWeb',
@ -228,7 +231,6 @@ INSERT INTO Projet (
003 003
); );
--Yasmine
INSERT INTO Publication VALUES( INSERT INTO Publication VALUES(
001, 001,
'recherche scientifique sur la chimie organique', 'recherche scientifique sur la chimie organique',
@ -239,8 +241,6 @@ INSERT INTO Publication VALUES(
); );
--Yasmine --Yasmine
INSERT INTO Publication VALUES(
002, 002,
'Page rank', 'Page rank',
DATE '2022-07-07', DATE '2022-07-07',

View file

@ -35,8 +35,24 @@ WHERE date_soutenance IS NOT NULL;
--Nathan Q7 --Nathan Q7
SELECT nom, prenom FROM Personnel SELECT nom, prenom FROM Personnel
WHERE idPersonnel NOT IN ( WHERE idPersonnel IN (
SELECT idScientifique FROM Encadrement SELECT idScientifique FROM Scientifique
WHERE idScientifique NOT IN (
SELECT idScientifique FROM Encadrement
)
);
-- Nathan Q9
SELECT nom, prenom FROM Personnel
WHERE idPersonnel IN (
SELECT idScientifique FROM Scientifique
WHERE idScientifique IN (
SELECT idScientifique FROM Encadrement
WHERE idDoctorant IN (
SELECT idDoctorant FROM Doctorant
WHERE date_soutenance < NOW()
)
)
); );
-- Ronan Q10 -- Ronan Q10