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.
Relación de cantante<br />CREATE  DATABASE      BD-GRUPOSMUCICALES<br />CRÉATE TABLE     GRUPO<br />(Cod-grupo   char (5) ...
Tarea crear scripts
Tarea crear scripts
Tarea crear scripts
Upcoming SlideShare
Loading in …5
×

Tarea crear scripts

1,802 views

Published on

trabajo realizado para crear una base de datos

  • Be the first to comment

  • Be the first to like this

Tarea crear scripts

  1. 1. Relación de cantante<br />CREATE DATABASE BD-GRUPOSMUCICALES<br />CRÉATE TABLE GRUPO<br />(Cod-grupo char (5) Not null;<br />Nombre varchar (15) Not null;<br />N°integrantes varchar (30) not null;<br />N°Albunes varchar (100));<br />Primary key cod-grupo<br />CRÉATE TABLE CANTANTE<br />(Cod-cantante char (5) Not null;<br />Nombre-cantante varchar (30) Not null;<br />Apellidos-cantante varchar (50) not null;<br />Nacionalidad-cantante varchar (50)) ;<br />Primary key cod-cantante<br />Foreign key cod-musica<br />CRÉATE TABLE MUSICA<br />(Cod-musica char (5) Not null;<br />Titulo-musica varchar (30) Not null;<br />Soporte-musica char (5) not null;<br />Genero-musica varchar (15) Not null;<br />Tiempo-musica date (8));<br />Primary key cod-musica<br />Foreign key cod-Estanteria<br />CRÉATE TABLE ESTANTERIA<br />(Cod-estanteria char (3) Not null;<br />Nombre-estantería varchar (30) Not null;<br />Material-estanteria char (8));<br />Primary key cod-estanteria<br />RELACION DE HOSPITAL<br />CREATE DATABASE BD-HOSPITAL<br />CRÉATE TABLE HOSPITAL<br />(Cod-Hospital char (5) Not null;<br />Nombre-hospital varchar (30) Not null;<br />Direccion varchar (30));<br />Primary key cod-hospital<br />CRÉATE TABLE DOCTOR<br />(Cod-doctor char (3) Not null;<br />Nombre varchar (30) Not null;<br />Apellidos varchar (30) Not null;<br />Dni char (8) Not null;<br />Especialidad varchar (30));<br />Primary key cod-doctor<br />CRÉATE TABLE PACIENTE<br />(Cod-paciente char (5) Not null;<br />Nombre varchar (30) Not null;<br />Apellido varchar (30)) Not null;<br />Dni char (8) not null;<br />Edad char (3));<br />Primary key cod-paciente<br />

×