Your SlideShare is downloading. ×
Identificar Las Llaves Primarias Y ForáNeas
Identificar Las Llaves Primarias Y ForáNeas
Identificar Las Llaves Primarias Y ForáNeas
Identificar Las Llaves Primarias Y ForáNeas
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Identificar Las Llaves Primarias Y ForáNeas

917

Published on

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

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

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 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 />

×