Taller 4

545
-1

Published on

BEATRIZ HURTADO TALLER 4

Published in: Technology, Sports
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
545
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Taller 4

  1. 1. TALLER DE PRÁCTICA 4<br />BEATRIZ HURTADO SALAZAR<br />UNIDAD CENTRAL DEL VALLE DEL CAUCA<br />INGENIERIA EN SISTEMAS<br />V SEMESTRE<br />TULUA - VALLE<br />TALLER DE PRÁCTICA 4<br />BEATRIZ HURTADO SALAZAR<br />EDGAR SANDOVAL<br />UNIDAD CENTRAL DEL VALLE DEL CAUCA<br />INGENIERIA EN SISTEMAS<br />V SEMESTRE <br />TULUA – VALLE<br />DIAGRAMA<br />IDENTIFICAR LAS LLAVES FORANEAS Y PRIMARIAS DEL TALLER # 4<br /> BLOQUE (Cob, Nombre)<br /> SALON (Cos, Nombre, Cob)<br /> <br /> <br /> ASIGNATURA (Co_A, Codigo, Cop, CodAr, Cos, Nombre, Creditos, Hit, Ac, Hp, Prerrequisito)<br /> <br /> PROGRAMA(Cop, NOMBRE, Cof)<br />FACULTAD ( Cof, Nombre)<br />AREA (CodAr, Nombre)<br />DOCENTE ( Codigo, Nombre, FechaNacimiento, Pregrado, Postgrado, FechaIngreso )<br />ASIGNATURA_has_PRERREQUISITOS (Co_A, Cod_Prerrequisito)<br />PRERREQUISITOS(Cod_Prerrequisitos, Nom_prerrequisitos)<br />ARCHIVO DE COMANDOS<br />CREATE TABLE " AREA" <br /> (" CODAR" NUMBER NOT NULL ENABLE, <br />" NOMBRE" CHAR(60) NOT NULL ENABLE, <br /> CONSTRAINT " AREA_PK" PRIMARY KEY (" CODAR" ) ENABLE<br /> )<br />/<br />CREATE TABLE " DOCENTE" <br /> (" CODIGO" NUMBER NOT NULL ENABLE, <br />" NOMBRE" CHAR(60) NOT NULL ENABLE, <br />" FECHANACIMIENTO" CHAR(20), <br />" PREGRADO" CHAR(100), <br />" POSTGRADO" CHAR(100), <br />" FECHAINGRESO" CHAR(20), <br /> CONSTRAINT " DOCENTE_PK" PRIMARY KEY (" CODIGO" ) ENABLE<br /> )<br />/<br />CREATE TABLE " PROGRAMA" <br /> (" COP" NUMBER NOT NULL ENABLE, <br />" NOMBRE" CHAR(60) NOT NULL ENABLE, <br />" FACULTAD_COF" NUMBER NOT NULL ENABLE, <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(6) NOT NULL ENABLE, <br />" BLOQUE_COB" NUMBER NOT NULL ENABLE, <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 " ASIGNATURA" <br /> (" CO_A" NUMBER NOT NULL ENABLE, <br />" DOCENTE_CODIGO" NUMBER NOT NULL ENABLE, <br />" PROGRAMA_COP" NUMBER NOT NULL ENABLE, <br />" AREA_CODAR" NUMBER NOT NULL ENABLE, <br />" SALON_COS" NUMBER NOT NULL ENABLE, <br />" NOMBRE" CHAR(12), <br />" CREDITOS" CHAR(1), <br />" HIT" CHAR(1), <br />" AC" CHAR(1), <br />" HP" CHAR(1), <br />" PRERREQUISITOS" CHAR(15), <br /> CONSTRAINT " ASIGNATURA_PK" PRIMARY KEY (" CO_A" ) ENABLE, <br /> CONSTRAINT " ASIGNATURA_FK" FOREIGN KEY (" DOCENTE_CODIGO" )<br /> REFERENCES " DOCENTE" (" CODIGO" ) ENABLE, <br /> CONSTRAINT " AREA_FK2" FOREIGN KEY (" PROGRAMA_COP" )<br /> REFERENCES " PROGRAMA" (" COP" ) ENABLE, <br /> CONSTRAINT " AREA_FK3" FOREIGN KEY (" AREA_CODAR" )<br /> REFERENCES " AREA" (" CODAR" ) ENABLE, <br /> CONSTRAINT " AREA_FK4" FOREIGN KEY (" SALON_COS" )<br /> REFERENCES " SALON" (" COS" ) ENABLE<br /> )<br />/<br />CREATE TABLE " PRERREQUISITOS" <br /> (" COD_PRERREQUISITOS" NUMBER NOT NULL ENABLE, <br />" NOM_PRERREQUISITOS" CHAR(30) NOT NULL ENABLE, <br /> CONSTRAINT " PRERREQUISITOS_PK" PRIMARY KEY (" COD_PRERREQUISITOS" ) ENABLE<br /> )<br />/<br />CREATE TABLE " ASIGNA_PRE" <br /> (" ASIGNATURA_CO_A" NUMBER NOT NULL ENABLE, <br />" PRERREQUISITOS_COD_PRERREQUISI" NUMBER NOT NULL ENABLE, <br /> CONSTRAINT " ASIGNA_PRE_FK" FOREIGN KEY (" ASIGNATURA_CO_A" )<br /> REFERENCES " ASIGNATURA" (" CO_A" ) ENABLE, <br /> CONSTRAINT " ASIGNA_PRE_FK2" FOREIGN KEY (" PRERREQUISITOS_COD_PRERREQUISI" )<br /> REFERENCES " PRERREQUISITOS" (" COD_PRERREQUISITOS" ) ENABLE<br /> )<br />/<br />CREATE TABLE " BLOQUE" <br /> (" COB" NUMBER NOT NULL ENABLE, <br />" NOMBRE" CHAR(20) NOT NULL ENABLE, <br /> CONSTRAINT " BLOQUE_PK" PRIMARY KEY (" COB" ) ENABLE<br /> )<br />/<br />CREATE TABLE " FACULTAD" <br /> (" COF" NUMBER NOT NULL ENABLE, <br />" NOMBRE" CHAR(30) NOT NULL ENABLE, <br /> CONSTRAINT " FACULTAD_PK" PRIMARY KEY (" COF" ) ENABLE<br /> )<br />/<br />ESQUEMA DEL MODELO<br />

×