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.

Identificar Las Llaves Primarias Y ForáNeas

1,098 views

Published on

Published in: Education
  • Be the first to comment

  • Be the first to like this

Identificar Las Llaves Primarias Y ForáNeas

  1. 1. -729615318770<br /> <br />Identificar las llaves primarias y foráneas <br />BLOQUE (COB, NOMBRE). <br />PROYECTO (COS, NOMBRE, COB)<br />ASIGNATURA (COA, NOMBRE, CREDITOS, HIT, AC, HP, COS, COP,COD,COAR,). <br />FACULTAD (COF, NOMBRE). <br />PROGRAMA (COP, NOMBRE, COF)<br />DOCENTE (COD, NOMBRE, FECHANACIMIENTO, PREGRADO, POSTGRADO, FECHAINGRESO)<br />AREA (COAR, NOMBRE)<br />PRERREQUISITO_has_ASIGNATURA(COD_PRE, COA)<br />PRERREQUISITO(COD_PRE, NOMBRE)<br />CODIGO DDL<br />CREATE TABLE " AREA" <br /> (" COAR" CHAR(20), <br />" NOMBRE" CHAR(20), <br /> CONSTRAINT " AREA_PK" PRIMARY KEY (" COAR" ) ENABLE<br /> )<br />/<br />CREATE TABLE " DOCENTE" <br /> (" COD" CHAR(20), <br />" NOMBRE" CHAR(20), <br />" FECHANACIMIENTO" CHAR(20), <br />" POSTGRADO" CHAR(30), <br />" FECHAINGRESO" CHAR(20), <br /> CONSTRAINT " DOCENTE_PK" PRIMARY KEY (" COD" ) ENABLE<br /> )<br />/<br />CREATE TABLE " PROGRAMA" <br /> (" COP" CHAR(20), <br />" NOMBRE" CHAR(20), <br /> CONSTRAINT " PROGRAMA_PK" PRIMARY KEY (" COP" ) ENABLE<br /> )<br />/<br />CREATE TABLE " FACULTAD" <br /> (" COF" CHAR(20), <br />" NOMBRE" CHAR(20), <br />" COP" CHAR(20), <br /> CONSTRAINT " FACULTAD_PK" PRIMARY KEY (" COF" ) ENABLE, <br /> CONSTRAINT " FACULTAD_FK" FOREIGN KEY (" COP" )<br /> REFERENCES " PROGRAMA" (" COP" ) ENABLE<br /> )<br />/<br />CREATE TABLE " SALON" <br /> (" COS" CHAR(20), <br />" NOMBRE" CHAR(20), <br />" COB" CHAR(20), <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(20), <br />" NOMBRE" CHAR(20), <br />" CREDITOS" CHAR(20), <br />" HTI" CHAR(20), <br />" AC" CHAR(20), <br />" HP" CHAR(20), <br />" COAR" CHAR(20), <br />" COD" CHAR(20), <br />" COF" CHAR(20), <br />" COS" CHAR(20), <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 (" COD" )<br /> REFERENCES " DOCENTE" (" COD" ) ENABLE, <br /> CONSTRAINT " ASIGNATURA_FK3" FOREIGN KEY (" COF" )<br /> REFERENCES " FACULTAD" (" COF" ) ENABLE, <br /> CONSTRAINT " ASIGNATURA_FK4" FOREIGN KEY (" COS" )<br /> REFERENCES " SALON" (" COS" ) ENABLE<br /> )<br />/<br />CREATE TABLE " PRERREQUISITOS" <br /> (" COD_PRE" NUMBER, <br />" NOMBRE" CHAR(20), <br /> CONSTRAINT " PRERREQUISITOS_PK" PRIMARY KEY (" COD_PRE" ) ENABLE<br /> )<br />/<br />CREATE TABLE " ASIG_PRE" <br /> (" COA" CHAR(20), <br />" COD_PRE" NUMBER, <br /> CONSTRAINT " ASIG_PRE_FK" FOREIGN KEY (" COA" )<br /> REFERENCES " ASIGNATURA" (" COA" ) ENABLE, <br /> CONSTRAINT " ASIG_PRE_FK2" FOREIGN KEY (" COD_PRE" )<br /> REFERENCES " PRERREQUISITOS" (" COD_PRE" ) ENABLE<br /> )<br />/<br />CREATE TABLE " BLOQUE" <br /> (" COB" CHAR(20) NOT NULL ENABLE, <br />" NOMBRE" CHAR(20), <br /> CONSTRAINT " BLOQUE_PK" PRIMARY KEY (" COB" ) ENABLE<br /> )<br />/<br />Vista por oracle<br />-1175385175260<br />

×