FECHA_NACIMIENTO DATE NOT NULL,<br />TELEFONO NUMERIC (10) NULL,<br />CONSTRAINT PK_ALUMNO PRIMARY KEY (ID_ALUMNO)<br />);...
Codigo Ceclav
Upcoming SlideShare
Loading in...5
×

Codigo Ceclav

234

Published on

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

  • Be the first to like this

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

No notes for slide

Transcript of "Codigo Ceclav"

  1. 1. FECHA_NACIMIENTO DATE NOT NULL,<br />TELEFONO NUMERIC (10) NULL,<br />CONSTRAINT PK_ALUMNO PRIMARY KEY (ID_ALUMNO)<br />);<br />USE CECLAV<br />CREATE TABLE PROMOTOR (<br />ID_PROMOTOR NUMERIC (5) NOT NULL,<br />NOMBRE_PROMOTOR CHAR (30) NOT NULL,<br />APELLIDO_PATERNO CHAR (20) NOT NULL,<br />APELLIDO_MATERNO CHAR (20) NOT NULL,<br />TELEFONO NUMERIC (10) NULL,<br />DIRECCION CHAR (30) NOT NULL,<br />CONSTRAINT PK_PROMOTOR PRIMARY KEY (ID_PROMOTOR)<br />);<br />USE CECLAV<br />CREATE TABLE INSCRIPCION(<br />ID_INSCRIPCION NUMERIC (5) NOT NULL,<br />ID_CURSO NUMERIC(5) NOT NULL,<br />ID_PROFESOR NUMERIC (5) NOT NULL,<br />ID_ALUMNO NUMERIC (5) NOT NULL,<br />ID_PROMOTOR NUMERIC (5) NOT NULL,<br />COSTO_INSCRIPCION CHAR NOT NULL,<br />CONSTRAINT PK_INSCRIPCION PRIMARY KEY (ID_INSCRIPCION),<br />CONSTRAINT FK_CURSO FOREIGN KEY (ID_CURSO) REFERENCES CURSO (ID_CURSO),<br />CONSTRAINT FK_PROFESOR FOREIGN KEY (ID_PROFESOR) REFERENCES PROFESOR (ID_PROFESOR),<br />CONSTRAINT FK_ALUMNO FOREIGN KEY (ID_ALUMNO) REFERENCES ALUMNO (ID_ALUMNO),<br />CONSTRAINT FK_PROMOTOR FOREIGN KEY (ID_PROMOTOR) REFERENCES PROMOTOR (ID_PROMOTOR)<br />); <br />

×