From 05bd8863890c6cb1735344e0d03db27b102d7af0 Mon Sep 17 00:00:00 2001 From: Alexis LAURENT Date: Thu, 17 Nov 2022 11:39:27 +0100 Subject: [PATCH] =?UTF-8?q?mise=20=C3=A0=20jour=20R=C3=A9servation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SAEBDD.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SAEBDD.sql b/SAEBDD.sql index 191e9dd..7bd1b72 100644 --- a/SAEBDD.sql +++ b/SAEBDD.sql @@ -7,7 +7,7 @@ CREATE TABLE Réservartion ( DateReservation date CONSTRAINT date2Réservation NOT NULL, Forfait numeric(5,2) CONSTRAINT forfaitPrix CHECK (Forfait >= 500.00 AND Forfait > 0.00), DateRetour date CONSTRAINT date2Retour CHECK (dateretour > DateReservation), - Durée numeric(2) CONSTRAINT PbDurée CHECK( (Durée <= 7 AND Durée >= 1) AND ), + Durée numeric(2) CONSTRAINT PbDurée CHECK( (Durée <= 7 AND Durée >= 1) AND (DateRetour - DateReservation == Durée) ), PRIMARY KEY (nom) );