From 8c0e8cea4eaaec5aba5decf6521dab87fe44421d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?SAEZ=20Th=C3=A9o?= <theo.saez@etu.univ-amu.fr>
Date: Thu, 3 Apr 2025 11:39:10 +0200
Subject: [PATCH] =?UTF-8?q?D=C3=A9but=20question=203,=20apprentissage=20de?=
 =?UTF-8?q?s=20VIEW?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 BusTP2-Q3.sql | 5 +++++
 1 file changed, 5 insertions(+)
 create mode 100644 BusTP2-Q3.sql

diff --git a/BusTP2-Q3.sql b/BusTP2-Q3.sql
new file mode 100644
index 0000000..2b45053
--- /dev/null
+++ b/BusTP2-Q3.sql
@@ -0,0 +1,5 @@
+CREATE VIEW RéservationsAvecHoraires
+AS SELECT r.NumR, r.NumC, r.NumT, r.VilleD, r.VilleA, r.Nbplaces, e_départ.DATED, e_arrivée.DATEA
+FROM Réservations r
+JOIN Etapes e_départ ON r.NumT = e_départ.NumT AND r.VilleD = e_départ.DATEA.NomV
+JOIN ETAPES e_arrivée ON r.NumT = e_arrivée.NumT AND r.VilleA = e_arrivée.DATEA.NomV
-- 
GitLab