Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

TALLER4

236 views

Published on

Published in: Technology, Business
  • Be the first to comment

  • Be the first to like this

TALLER4

  1. 1. BLOQUE (COB, NOMBRE).<br />SALON (COS, NOMBRE, COB).<br />DOCENTE (COD, NOMBRE, FECHANACIMIENTO,PREGRADO, POSGRADO, FECHAINGRESO).<br />ASIGNATURA (COA, NOMBRE, CREDITOS, HTI, AC, HP, COD, COP, COAR, COS).<br />PROGRAMA (COP, NOMBRE, COF).<br />FACULTAD (COF, NOMBRE).<br />AREA (COAR, NOMBRE).<br />RELACION ASIGNATURA HAS PREREQUISITOS<br />ASIGNATURA has PREREQUISITOS (COA_ASIGNATURA, COR_PREREQUIISITOS).<br />ASIGNATURA (COA, NOMBRE, CREDITOS, HTI, AC, HP, COD, COP, COAR, COS).<br />PREREQUISITOS (COR, NOMBRE).<br />CODIGO DDL.<br />CREATE TABLE " AREA" <br /> (" COAR" CHAR(2) NOT NULL ENABLE, <br />" NOMBRE" CHAR(30), <br /> CONSTRAINT " AREA_PK" PRIMARY KEY (" COAR" ) ENABLE<br /> )<br />/<br />CREATE TABLE " DOCENTE" <br /> (" COD" CHAR(15) NOT NULL ENABLE, <br />" NOMBRE" CHAR(60), <br />" FECHANACIMIENTO" CHAR(20), <br />" PREGRADO" CHAR(100), <br />" POSTGRADO" CHAR(100), <br />" FECHAINGRESO" CHAR(20), <br /> CONSTRAINT " DOCENTE_PK" PRIMARY KEY (" COD" ) ENABLE<br /> )<br />/<br />CREATE TABLE " PROGRAMA" <br /> (" COP" CHAR(2) NOT NULL ENABLE, <br />" NOMBRE" CHAR(30), <br />" COF" CHAR(2), <br /> CONSTRAINT " PROGRAMA_PK" PRIMARY KEY (" COP" ) ENABLE, <br /> CONSTRAINT " PROGRAMA_FK" FOREIGN KEY (" COF" )<br /> REFERENCES " FACULTAD" (" COF" ) ENABLE<br /> )<br />/<br />CREATE TABLE " SALON" <br /> (" COS" CHAR(2) NOT NULL ENABLE, <br />" NOMBRE" CHAR(20), <br />" COB" CHAR(2), <br /> CONSTRAINT " SALON_PK" PRIMARY KEY (" COS" ) ENABLE, <br /> CONSTRAINT " SALON_FK" FOREIGN KEY (" COB" )<br /> REFERENCES " BLOQUE" (" COB" ) ENABLE<br /> )<br />/<br />CREATE TABLE " ASIGNATURA" <br /> (" COA" CHAR(6) NOT NULL ENABLE, <br />" NOMBRE" CHAR(30), <br />" CREDITOS" CHAR(12), <br />" HTI" CHAR(1), <br />" AC" CHAR(1), <br />" HP" CHAR(1), <br />" COAR" CHAR(2), <br />" COS" CHAR(2), <br />" COP" CHAR(2), <br />" COD" CHAR(2), <br /> CONSTRAINT " ASIGNATURA_PK" PRIMARY KEY (" COA" ) ENABLE, <br /> CONSTRAINT " ASIGNATURA_FK" FOREIGN KEY (" COAR" )<br /> REFERENCES " AREA" (" COAR" ) ENABLE, <br /> CONSTRAINT " ASIGNATURA_FK2" FOREIGN KEY (" COS" )<br /> REFERENCES " SALON" (" COS" ) ENABLE, <br /> CONSTRAINT " ASIGNATURA_FK3" FOREIGN KEY (" COP" )<br /> REFERENCES " PROGRAMA" (" COP" ) ENABLE, <br /> CONSTRAINT " ASIGNATURA_FK4" FOREIGN KEY (" COD" )<br /> REFERENCES " DOCENTE" (" COD" ) ENABLE<br /> )<br />/<br />CREATE TABLE " BLOQUE" <br /> (" COB" CHAR(2), <br />" NOMBRE" CHAR(20), <br /> CONSTRAINT " BLOQUE_PK" PRIMARY KEY (" COB" ) ENABLE<br /> )<br />/<br />CREATE TABLE " FACULTAD" <br /> (" COF" CHAR(2) NOT NULL ENABLE, <br />" NOMBRE" CHAR(30), <br /> CONSTRAINT " FACULTAD_PK" PRIMARY KEY (" COF" ) ENABLE<br /> )<br />/<br />CREATE TABLE " PREREQUISITO" <br /> (" COR" CHAR(2), <br />" NOMBRE" CHAR(20), <br /> CONSTRAINT " PREREQUISITO_PK" PRIMARY KEY (" COR" ) ENABLE<br /> )<br />/<br />CREATE TABLE " RELASIPRE" <br /> (" COA" CHAR(2), <br />" COR" CHAR(2), <br /> CONSTRAINT " RELASIPRE_FK" FOREIGN KEY (" COA" )<br /> REFERENCES " ASIGNATURA" (" COA" ) ENABLE, <br /> CONSTRAINT " RELASIPRE_FK2" FOREIGN KEY (" COR" )<br /> REFERENCES " PREREQUISITO" (" COR" ) ENABLE<br /> )<br />/<br /> <br />

×