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.

Taller De Refuerzo.

663 views

Published on

  • Be the first to comment

  • Be the first to like this

Taller De Refuerzo.

  1. 1. Tallera de refuerzo<br />BASES DE DATOS<br />JAVIER HUMBERTO CÁRDENAS DUQUE<br />Presentado a: Edgar Sandoval<br />UNIDAD CENTRAL DEL VALLE DEL CAUCA<br />PROGRAMA DE INGENIERIA<br />INGENIERIA DE SISTEMAS<br />SEMESTRE V<br />Identificar las llaves primarias y foráneas <br />BLOQUE(Cob,Nombre)<br />SALON(Cos,Nombre, BLOQUE_ Cob)<br />ASIGNATURA(Coa,Nombre,Creditos,Hti,Ac, SALON_ Cos,AREA_Coar,PROGRAMA_Cop,DOCENTE_Cod)<br />AREA(Coar,Nombre)<br />DOCENTE(Cod,Nombre,FechaNacimiento,Pregrado,Postgrado,FechaIngreso)<br />PROGRAMA(Cop,Nombre,FACULTAD_Cof)<br />FACULTAD(Cof,Nombre)<br />PREREQUISISTOS(Copre,Nombreasignatura)<br />ASIGNATURA_has_ PREREQUISISTOS (ASIGNATURA_ Coa, PREREQUISISTOS_ Copre)<br />CODIGO DE PROGRAMA:<br />CREATE TABLE " AREA" <br /> (" COAR" NUMBER NOT NULL ENABLE, <br />" NOMBRE" CHAR(35) NOT NULL ENABLE, <br /> CONSTRAINT " AREA_PK" PRIMARY KEY (" COAR" ) ENABLE<br /> )<br />/<br />CREATE TABLE " DOCENTE" <br /> (" COD" NUMBER 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" NUMBER NOT NULL ENABLE, <br />" NOMBRE" CHAR(60), <br />" FACULTAD_COF" NUMBER, <br /> CONSTRAINT " PROGRAMA_PK" PRIMARY KEY (" COP" ) ENABLE, <br /> CONSTRAINT " PROGRAMA_FK" FOREIGN KEY (" FACULTAD_COF" )<br /> REFERENCES " FACULTAD" (" COF" ) ENABLE<br /> )<br />/<br />CREATE TABLE " SALON" <br /> (" COS" NUMBER NOT NULL ENABLE, <br />" NOMBRE" CHAR(20) NOT NULL ENABLE, <br />" BLOQUE_COB" NUMBER, <br /> CONSTRAINT " SALON_PK" PRIMARY KEY (" COS" ) ENABLE, <br /> CONSTRAINT " SALON_FK" FOREIGN KEY (" BLOQUE_COB" )<br /> REFERENCES " BLOQUE" (" COB" ) ENABLE<br /> )<br />/<br />CREATE TABLE " ASIGNATURAS" <br /> (" COA" NUMBER NOT NULL ENABLE, <br />" NOMBRE" CHAR(30) NOT NULL ENABLE, <br />" CREDITOS" CHAR(20) NOT NULL ENABLE, <br />" HTI" CHAR(1) NOT NULL ENABLE, <br />" AC" CHAR(1) NOT NULL ENABLE, <br />" AREA_COAR" NUMBER, <br />" DOCENTE_COD" NUMBER, <br />" PROGRAMA_COP" NUMBER, <br />" SALON_COS" NUMBER, <br /> CONSTRAINT " ASIGNATURAS_PK" PRIMARY KEY (" COA" ) ENABLE, <br /> CONSTRAINT " ASIGNATURAS_FK" FOREIGN KEY (" AREA_COAR" )<br /> REFERENCES " AREA" (" COAR" ) ENABLE, <br /> CONSTRAINT " AREA_FK2" FOREIGN KEY (" DOCENTE_COD" )<br /> REFERENCES " DOCENTE" (" COD" ) ENABLE, <br /> CONSTRAINT " AREA_FK3" FOREIGN KEY (" PROGRAMA_COP" )<br /> REFERENCES " PROGRAMA" (" COP" ) ENABLE, <br /> CONSTRAINT " AREA_FK4" FOREIGN KEY (" SALON_COS" )<br /> REFERENCES " SALON" (" COS" ) ENABLE<br /> )<br />/<br />CREATE TABLE " PREREQUISITOS" <br /> (" COPRE" NUMBER NOT NULL ENABLE, <br />" NOMBREASIGNATURA" CHAR(30) NOT NULL ENABLE, <br /> CONSTRAINT " PREREQUISITOS_PK" PRIMARY KEY (" COPRE" ) ENABLE<br /> )<br />/<br />CREATE TABLE " ASIG_PRE" <br /> (" ASIGNATURAS_COA" NUMBER, <br />" PREREQUISITOS_COPRE" NUMBER, <br /> CONSTRAINT " ASIG_PRE_FK" FOREIGN KEY (" ASIGNATURAS_COA" )<br /> REFERENCES " ASIGNATURAS" (" COA" ) ENABLE, <br /> CONSTRAINT " PREREQUISITOS_FK2" FOREIGN KEY (" PREREQUISITOS_COPRE" )<br /> REFERENCES " PREREQUISITOS" (" COPRE" ) ENABLE<br /> )<br />/<br />CREATE TABLE " BLOQUE" <br /> (" COB" NUMBER NOT NULL ENABLE, <br />" NOMBRE" CHAR(20), <br /> CONSTRAINT " BLOQUE_PK" PRIMARY KEY (" COB" ) ENABLE<br /> )<br />/<br />CREATE TABLE " FACULTAD" <br /> (" COF" NUMBER NOT NULL ENABLE, <br />" NOMBRE" CHAR(30), <br /> CONSTRAINT " FACULTAD_PK" PRIMARY KEY (" COF" ) ENABLE<br /> )<br />/<br />

×