Tarea Base de Datos.docx

Tarea Base de Datos.docx - Laboratorio No 3 Universidad...

Info icon This preview shows pages 1–3. Sign up to view the full content.

Laboratorio No. 3 “Universidad “ Create Database Universidad Go Use Universidad Go Create Table Persona ( DNI varchar(9) Primary Key, Nombre varchar(25) NOT NULL, Apellido varchar(25) Not Null, Ciudad varchar (25), DireccionCalle varchar(50), DireccionNum varchar(3), Telefono varchar(9), FechaNacimiento smalldatetime, Varon varchar(1) Check (Varon In ('0','1')) ); Create Table Asignatura ( IdAsignatura varchar(6) Primary Key, Nombre varchar(50) Not Null, Creditos Numeric Check (Creditos In (4,5,6,7,8,9)), Cuatrimestre varchar(1) Check(Cuatrimestre In ('1','2')), CosteBasico Numeric(3,2), IdProfesor varchar(4) References Profesor(IdProfesor),
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

IdTitulacion varchar(6) References Titulacion(IdTitulacion), Curso datetime Check (Curso In('1','2','3','4'))); Create Table Profesor ( IdProfesor varchar(4) Primary key, DNI varchar(9) References Persona(DNI) ); Create Table Alumno ( IdAlumno varchar(7) Primary Key, DNI varchar(9) References Persona(DNI) ); Create Table Titulacion ( IdTitulacion varchar(6) Primary Key, Nombre varchar(20) Not Null Unique ); Create Table Alumno_Asignatura (
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.
  • Spring '17
  • polimeni
  • 1', primary key, Alumno, ​NOT NULL​, Disciplina académica

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern