From 096592bd196520c717c524aed3ab77282d02facb Mon Sep 17 00:00:00 2001 From: willgonzz Date: Sun, 24 Oct 2021 11:19:02 -0300 Subject: [PATCH] Initial commit --- Ejercicio_001.html | 41 +++++++++++++++++++++++++++++++++++++++++ Ejercicio_002.html | 46 ++++++++++++++++++++++++++++++++++++++++++++++ Ejercicio_003.html | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ sql/triger.sql | 18 ++++++++++++++++++ 4 files changed, 159 insertions(+) create mode 100644 Ejercicio_001.html create mode 100644 Ejercicio_002.html create mode 100644 Ejercicio_003.html create mode 100644 sql/triger.sql diff --git a/Ejercicio_001.html b/Ejercicio_001.html new file mode 100644 index 0000000..f764f42 --- /dev/null +++ b/Ejercicio_001.html @@ -0,0 +1,41 @@ + + + + + + + EJERCICIO_001 + + + +
+
+ + Email subscriptions + +

+ +

+

+ +

+
+
+ + + \ No newline at end of file diff --git a/Ejercicio_002.html b/Ejercicio_002.html new file mode 100644 index 0000000..8a0b246 --- /dev/null +++ b/Ejercicio_002.html @@ -0,0 +1,46 @@ + + + + + + + EJERCICIO_002 + + +
+ Billing Information +

+ +

+

+ Home Address:
+ +
+ +

+
+ + + \ No newline at end of file diff --git a/Ejercicio_003.html b/Ejercicio_003.html new file mode 100644 index 0000000..a7423c3 --- /dev/null +++ b/Ejercicio_003.html @@ -0,0 +1,54 @@ + + + + + + + EJERCICIO_003 + + + + +
+
+ Personal details +

+ +

+

Please enter your name above

+

+ +

+

+ Please enter your streetaddress +

+
+ +
+ + + \ No newline at end of file diff --git a/sql/triger.sql b/sql/triger.sql new file mode 100644 index 0000000..5135b24 --- /dev/null +++ b/sql/triger.sql @@ -0,0 +1,18 @@ + + +CREATE TABLE REGISTRO_INVENTORY( + REGISTRO_ID INTEGER PRIMERY KEY, + FECHA DATE, + FILM_ID INTEGER NOT NULL, + STORE_ID INTEGER NOT NULL, + CONSTRAINT FK_FILM_ID FOREIGN KEY(FILM_ID) REFERENCES FILM(FILM_ID), + CONSTRAINT FK_STORE_ID FOREIGN KEY(STORE_ID) REFERENCES STORE(STORE_ID) +); + +CREATE OR REPLACE TRIGGER INSERTAR_INVENTORY + AFTER UPDATE ON INVENTORY + FOR EACH ROW + BEGIN + INSERT INTO REGISTRO_INVENTORY (REGISTRO_ID, FECHA, FILM_ID, STORE_ID) VALUES (DEFAULT, OLD.LAST_UPDATE, OLD.FILM_ID, old.STORE_ID); +END INSERTAR_INVENTORY; +/ \ No newline at end of file -- libgit2 0.26.0