diff --git b/Ejercicio_001.html a/Ejercicio_001.html new file mode 100644 index 0000000..f764f42 --- /dev/null +++ a/Ejercicio_001.html @@ -0,0 +1,41 @@ + + + + + + + EJERCICIO_001 + + + +
+
+ + Email subscriptions + +

+ +

+

+ +

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

+ +

+

+ Home Address:
+ +
+ +

+
+ + + \ No newline at end of file diff --git b/Ejercicio_003.html a/Ejercicio_003.html new file mode 100644 index 0000000..a7423c3 --- /dev/null +++ a/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 b/sql/triger.sql a/sql/triger.sql new file mode 100644 index 0000000..5135b24 --- /dev/null +++ a/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