Commit a6f4e3b5 authored by Tom HENRION's avatar Tom HENRION

Last commit

parent 22224d29
SELECT DISTINCT v.Id, Nom, Prix, Cepage_parcelle as cépage
FROM Parcelle p, Vin v, parcelle_compose_vin pcv
WHERE pcv.vin = v.Id
AND pcv.parcelle = p.Numero
Order by v.Id;
SELECT DISTINCT v.Id, v.Nom, Prix, Intensite, te.Nom as evenement, te.Description
FROM Parcelle p, Vin v, parcelle_compose_vin pcv, Climat c, Type_evenement te, Impacte i, Possede_evenement pe
WHERE pcv.vin = v.Id
AND pcv.parcelle = p.Numero
AND c.Id = pcv.parcelle
AND i.parcelle = p.Numero
AND pe.type = te.Nom
AND c.Id = pe.evenement
Order by v.Id;
SELECT v.Id, v.Nom, v.Prix, Cepage_parcelle as cépage, Type, Methode_de_recolte
FROM Parcelle p, Vin v, parcelle_compose_vin pcv, Methode_de_recolte mdr, Mode_de_Culture mdc
WHERE pcv.vin = v.Id
AND pcv.parcelle = p.Numero
AND p.culture = mdc.Type
AND p.recolte = mdr.Methode_de_recolte
Order by v.Id;
SELECT DISTINCT v.Id, Nom, Cepage_parcelle as cépage, Notation as note_du_vin, Decription_global
FROM Parcelle p, Vin v, parcelle_compose_vin pcv, Critere_Qualitatif cq
WHERE pcv.vin = v.Id
AND pcv.parcelle = p.Numero
AND cq.Id = v.Critere
Order by v.Id;
SELECT DISTINCT v.Id, v.Nom, Cepage_parcelle as cépage, Type, Methode_de_recolte, Notation
FROM Parcelle p, Vin v, parcelle_compose_vin pcv, Methode_de_recolte mdr, Mode_de_Culture mdc, Critere_Qualitatif cq
WHERE pcv.vin = v.Id
AND pcv.parcelle = p.Numero
AND cq.Id = v.Critere
AND p.culture = mdc.Type
AND p.recolte = mdr.Methode_de_recolte
Order by v.Id;
\ No newline at end of file
......@@ -430,45 +430,3 @@ INSERT INTO Possede_evenement VALUES ('Orage', 1),
('Innondation', 5),
('Pluie', 4),
('Pluie', 3);
-- Il faut faire environ 6 select
SELECT DISTINCT v.Id, Nom, Prix, Cepage_parcelle as cépage
FROM Parcelle p, Vin v, parcelle_compose_vin pcv
WHERE pcv.vin = v.Id
AND pcv.parcelle = p.Numero
Order by v.Id;
SELECT DISTINCT v.Id, v.Nom, Prix, Intensite, te.Nom as evenement, te.Description
FROM Parcelle p, Vin v, parcelle_compose_vin pcv, Climat c, Type_evenement te, Impacte i, Possede_evenement pe
WHERE pcv.vin = v.Id
AND pcv.parcelle = p.Numero
AND c.Id = pcv.parcelle
AND i.parcelle = p.Numero
AND pe.type = te.Nom
AND c.Id = pe.evenement
Order by v.Id;
SELECT v.Id, v.Nom, v.Prix, Cepage_parcelle as cépage, Type, Methode_de_recolte
FROM Parcelle p, Vin v, parcelle_compose_vin pcv, Methode_de_recolte mdr, Mode_de_Culture mdc
WHERE pcv.vin = v.Id
AND pcv.parcelle = p.Numero
AND p.culture = mdc.Type
AND p.recolte = mdr.Methode_de_recolte
Order by v.Id;
SELECT DISTINCT v.Id, Nom, Cepage_parcelle as cépage, Notation as note_du_vin, Decription_global
FROM Parcelle p, Vin v, parcelle_compose_vin pcv, Critere_Qualitatif cq
WHERE pcv.vin = v.Id
AND pcv.parcelle = p.Numero
AND cq.Id = v.Critere
Order by v.Id;
SELECT DISTINCT v.Id, v.Nom, Cepage_parcelle as cépage, Type, Methode_de_recolte, Notation
FROM Parcelle p, Vin v, parcelle_compose_vin pcv, Methode_de_recolte mdr, Mode_de_Culture mdc, Critere_Qualitatif cq
WHERE pcv.vin = v.Id
AND pcv.parcelle = p.Numero
AND cq.Id = v.Critere
AND p.culture = mdc.Type
AND p.recolte = mdr.Methode_de_recolte
Order by v.Id;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment