Porovnat revize
2 commitů
e17841d284
...
770b74f34f
| Autor | SHA1 | Datum | |
|---|---|---|---|
|
|
770b74f34f | ||
|
|
048edb8f23 |
2 změnil soubory, kde provedl 33 přidání a 12 odebrání
18
insert.sql
18
insert.sql
|
|
@ -732,7 +732,6 @@ INSERT INTO Publication(titre, annee, nomConf, classeConf, nbPages) VALUES(
|
|||
|
||||
--Yasmine
|
||||
INSERT INTO Projet(titre, acronyme, annee_debut, annee_fin, duree, budget_Laas, cout, idMeneurProjet) VALUES(
|
||||
4
|
||||
'BaseDeDonnee',
|
||||
'BDD',
|
||||
DATE '2022-12-07',
|
||||
|
|
@ -745,7 +744,6 @@ INSERT INTO Projet(titre, acronyme, annee_debut, annee_fin, duree, budget_Laas,
|
|||
|
||||
--Yasmine
|
||||
INSERT INTO Projet(titre, acronyme, annee_debut, annee_fin, duree, budget_Laas, cout, idMeneurProjet) VALUES(
|
||||
5
|
||||
'langC',
|
||||
'C',
|
||||
DATE '2022-11-07',
|
||||
|
|
@ -758,7 +756,6 @@ INSERT INTO Projet(titre, acronyme, annee_debut, annee_fin, duree, budget_Laas,
|
|||
|
||||
--Yasmine
|
||||
INSERT INTO Projet(titre, acronyme, annee_debut, annee_fin, duree, budget_Laas, cout, idMeneurProjet) VALUES(
|
||||
6
|
||||
'Programation web',
|
||||
'ProgWeb',
|
||||
DATE '2022-04-07',
|
||||
|
|
@ -783,6 +780,21 @@ INSERT INTO Participe VALUES (
|
|||
5
|
||||
);
|
||||
|
||||
INSERT INTO Participe VALUES (
|
||||
1,
|
||||
2
|
||||
);
|
||||
|
||||
INSERT INTO Participe VALUES (
|
||||
2,
|
||||
2
|
||||
);
|
||||
|
||||
INSERT INTO Participe VALUES (
|
||||
3,
|
||||
2
|
||||
);
|
||||
|
||||
----------------------------------------------------------------------
|
||||
-- --
|
||||
-- Preside --
|
||||
|
|
|
|||
27
request.sql
27
request.sql
|
|
@ -7,7 +7,7 @@
|
|||
-- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
-- Yasmine | | | | | O | | | O | | | | | | O | O | | | | O | | O |
|
||||
-- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
-- Nathan | O | | | | | | O | | O | | O | | | | | | O | | | | |
|
||||
-- Nathan | O | | | | | | O | | O | | O | | | | | | O | O | | | |
|
||||
-- --------+---+---+---+---+---+---+---+---+---+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
-- ^ ^ ^
|
||||
-- | | |
|
||||
|
|
@ -181,6 +181,18 @@ WHERE idScientifique IN (
|
|||
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
|
||||
|
||||
|
|
@ -196,11 +208,8 @@ SELECT Distinct P.Pays
|
|||
FROM Partenaire P, Participe_externe PEX
|
||||
where P.idpartenaire=PEX.idpartenaire
|
||||
and not exists (Select *
|
||||
|
||||
From Projet PR
|
||||
Where not exists (Select *
|
||||
|
||||
From Participe_externe PEX2
|
||||
Where PEX2.idPartenaire=P.idPartenaire and
|
||||
PEX2.idProjet=PR.idProjet));
|
||||
|
||||
From Projet PR
|
||||
Where not exists (Select *
|
||||
From Participe_externe PEX2
|
||||
Where PEX2.idPartenaire=P.idPartenaire and
|
||||
PEX2.idProjet=PR.idProjet));
|
||||
|
|
|
|||
Načítání…
Odkázat v novém problému