Mysql

Páginas: 2 (350 palabras) Publicado: 3 de abril de 2012
Musicos sin fronteras

Materia
Fundamentos de Base de Datos


Create database tarea;
use tarea;

Create table Partituras
(
id_partituras int not null primary key,
nombre char(20) not null,
genero char (20) not null,
autor char (20) not null
);

Creat table Instrumntos
(
Nombre char(20) not null primary key,
descripcion varchar(100) not null,tipo char(20) not null
);

Create table Paises
(
id_pais int not null primary key,
nombre char(20) not null
);

Create table Ciudades
(
id_ciudad int not nullprimary key,
nombre char(20) not null,
huso_horario int not null,
id_pais int not null references Paises(id_pais)
);

Crate table Interprete
(
pasaporte int not null primarykey,
nombcre char(20) not null,
estilos char(20) not null,
id_ciudad int not null references Ciudades (id_ciudad)
);

Create table Directores
(
pasaporte int not nullprimary key references Interprete (pasaporte)
);

Create table Musicos
(
pasaporte int not null primary key references Interprete (pasaporte)
);

Create table Cantantes
(
pasaporte intnot null primary key references Interprete (pasaporte),
nombre char(20) not null
);

Create table Tocan
(
pasaporte int not null references Musicos(pasaporte),
instrumentochar(20) not null references Instrumentos(Nom_instrumento),
primary key (pasaporte, instrumento)
);

Create table Requiere
(
instrumento char(20) not null references Instrumentos(nombre),partituras int not null references Partituras(id_partituras),
primary key(instrumento, partituras)
);

Create table Escenario
(
id_escenario int not null primary key,
nombrechar(20) not null,
hora int not null,
tipo char(20) not null,
id_ciudad int not null references Ciudades(id_ciudad)
);

Create table Presentaciones
(
id_presentacion int not...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Mysql
  • Mysql
  • Mysql
  • Mysql
  • QUE ES MYSQL
  • Mysql
  • Mysql
  • Mysql

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS