Commit 725daa08 authored by Saad Bennis's avatar Saad Bennis
Browse files

Update requete.sql

parent ee40c2cd
......@@ -52,3 +52,26 @@ SELECT A.espece as Espece, AVG(a.poids) as Poids_Moyen, AVG(A.taille) as Taille_
FROM Animal A
GROUP BY A.espece;
-- \set AUTOCOMMIT off
-- Un membre vient de terminer le paiement de ses frais d'inscription
BEGIN TRANSACTION;
INSERT INTO Client (nom, prénom, naissance, adresse, numero)
VALUES (Saad, Bennis,1998-01-01', ‘6 rue antoine, '1998-01-01,0123456789);
COMMIT TRANSACTION;
-- Un membre vient de terminer le paiement de ses frais d'inscription
BEGIN TRANSACTION;
INSERT INTO Client (nom, prénom, naissance, adresse, numero)
VALUES (Colin, Lafond,1998-01-01', ‘6 rue antoine, '1998-01-01,04787249);
COMMIT TRANSACTION;
-- Un Client change son numero de telephone)
BEGIN TRANSACTION;
UPDATE Resultat
SET numero = 0828371973,
WHERE nomMembre = Bennis
AND prenomMembre = Saad
AND dateDeNaissanceMembre = '1998-01-01'
COMMIT TRANSACTION;
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