Compare commits
No commits in common. "770b74f34f3bebcc1c8c55c300eea5f0321ef6b1" and "e17841d28435cb36a85cb084042fa5596d9d07ba" have entirely different histories.
770b74f34f
...
e17841d284
2 changed files with 12 additions and 33 deletions
18
insert.sql
18
insert.sql
|
|
@ -732,6 +732,7 @@ INSERT INTO Publication(titre, annee, nomConf, classeConf, nbPages) VALUES(
|
||||||
|
|
||||||
--Yasmine
|
--Yasmine
|
||||||
INSERT INTO Projet(titre, acronyme, annee_debut, annee_fin, duree, budget_Laas, cout, idMeneurProjet) VALUES(
|
INSERT INTO Projet(titre, acronyme, annee_debut, annee_fin, duree, budget_Laas, cout, idMeneurProjet) VALUES(
|
||||||
|
4
|
||||||
'BaseDeDonnee',
|
'BaseDeDonnee',
|
||||||
'BDD',
|
'BDD',
|
||||||
DATE '2022-12-07',
|
DATE '2022-12-07',
|
||||||
|
|
@ -744,6 +745,7 @@ INSERT INTO Projet(titre, acronyme, annee_debut, annee_fin, duree, budget_Laas,
|
||||||
|
|
||||||
--Yasmine
|
--Yasmine
|
||||||
INSERT INTO Projet(titre, acronyme, annee_debut, annee_fin, duree, budget_Laas, cout, idMeneurProjet) VALUES(
|
INSERT INTO Projet(titre, acronyme, annee_debut, annee_fin, duree, budget_Laas, cout, idMeneurProjet) VALUES(
|
||||||
|
5
|
||||||
'langC',
|
'langC',
|
||||||
'C',
|
'C',
|
||||||
DATE '2022-11-07',
|
DATE '2022-11-07',
|
||||||
|
|
@ -756,6 +758,7 @@ INSERT INTO Projet(titre, acronyme, annee_debut, annee_fin, duree, budget_Laas,
|
||||||
|
|
||||||
--Yasmine
|
--Yasmine
|
||||||
INSERT INTO Projet(titre, acronyme, annee_debut, annee_fin, duree, budget_Laas, cout, idMeneurProjet) VALUES(
|
INSERT INTO Projet(titre, acronyme, annee_debut, annee_fin, duree, budget_Laas, cout, idMeneurProjet) VALUES(
|
||||||
|
6
|
||||||
'Programation web',
|
'Programation web',
|
||||||
'ProgWeb',
|
'ProgWeb',
|
||||||
DATE '2022-04-07',
|
DATE '2022-04-07',
|
||||||
|
|
@ -780,21 +783,6 @@ INSERT INTO Participe VALUES (
|
||||||
5
|
5
|
||||||
);
|
);
|
||||||
|
|
||||||
INSERT INTO Participe VALUES (
|
|
||||||
1,
|
|
||||||
2
|
|
||||||
);
|
|
||||||
|
|
||||||
INSERT INTO Participe VALUES (
|
|
||||||
2,
|
|
||||||
2
|
|
||||||
);
|
|
||||||
|
|
||||||
INSERT INTO Participe VALUES (
|
|
||||||
3,
|
|
||||||
2
|
|
||||||
);
|
|
||||||
|
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
-- --
|
-- --
|
||||||
-- Preside --
|
-- Preside --
|
||||||
|
|
|
||||||
17
request.sql
17
request.sql
|
|
@ -7,7 +7,7 @@
|
||||||
-- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+
|
-- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||||
-- Yasmine | | | | | O | | | O | | | | | | O | O | | | | O | | O |
|
-- Yasmine | | | | | O | | | O | | | | | | O | O | | | | O | | O |
|
||||||
-- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+
|
-- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||||
-- Nathan | O | | | | | | O | | O | | O | | | | | | O | O | | | |
|
-- Nathan | O | | | | | | O | | O | | O | | | | | | O | | | | |
|
||||||
-- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+
|
-- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||||
-- ^ ^ ^
|
-- ^ ^ ^
|
||||||
-- | | |
|
-- | | |
|
||||||
|
|
@ -181,18 +181,6 @@ WHERE idScientifique IN (
|
||||||
WHERE nbProjets = 1
|
WHERE nbProjets = 1
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Nathan QUESTION 18 (celle de Ronan) tested
|
|
||||||
SELECT * from Scientifique
|
|
||||||
WHERE idScientifique IN (
|
|
||||||
SELECT idScientifique FROM (
|
|
||||||
SELECT idScientifique, COUNT(DISTINCT idProjet) AS nbProjets FROM Participe
|
|
||||||
GROUP BY idScientifique
|
|
||||||
) AS ParticipationCount
|
|
||||||
RIGHT JOIN (
|
|
||||||
SELECT COUNT(DISTINCT idProjet) AS nbTotalProjets FROM Projet
|
|
||||||
) AS ProjectCount
|
|
||||||
ON ParticipationCount.nbProjets = ProjectCount.nbTotalProjets
|
|
||||||
);
|
|
||||||
|
|
||||||
-- Yasmine QUESTION 19 Testé AVEC 25 AU LIEU DE 50
|
-- Yasmine QUESTION 19 Testé AVEC 25 AU LIEU DE 50
|
||||||
|
|
||||||
|
|
@ -208,8 +196,11 @@ SELECT Distinct P.Pays
|
||||||
FROM Partenaire P, Participe_externe PEX
|
FROM Partenaire P, Participe_externe PEX
|
||||||
where P.idpartenaire=PEX.idpartenaire
|
where P.idpartenaire=PEX.idpartenaire
|
||||||
and not exists (Select *
|
and not exists (Select *
|
||||||
|
|
||||||
From Projet PR
|
From Projet PR
|
||||||
Where not exists (Select *
|
Where not exists (Select *
|
||||||
|
|
||||||
From Participe_externe PEX2
|
From Participe_externe PEX2
|
||||||
Where PEX2.idPartenaire=P.idPartenaire and
|
Where PEX2.idPartenaire=P.idPartenaire and
|
||||||
PEX2.idProjet=PR.idProjet));
|
PEX2.idProjet=PR.idProjet));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue