P. 1
Anal is Is

Anal is Is

|Views: 24|Likes:
Published by JeSsy SuKa

More info:

Published by: JeSsy SuKa on May 21, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, PDF, TXT or read online from Scribd
See more
See less

05/21/2012

pdf

text

original

create database analisis use analisis create table cliente (id_cliente varchar (15) not null, Nombre varchar (10), Apellido

varchar (10), Fecha_nacimiento date, Direccion varchar (10), Telefono numeric (10) create table pedidos (id_pedidos varchar (15) not null, fecha_pedido datatime)

create table genero (id_genero varchar (15) not null, genero varchar(15)) create table interprete (id_interprete varchar (15) not null, interprete varchar(15)) create table cds (id_cds varchar (15) not null, titulo varchar(15), volumen varchar(15)) create table canciones (id_canciones varchar (15) not null, canciones varchar(15))

alter table cliente add primary key (id_cliente) alter table pedidos add primary key (id_pedidos) alter table genero add primary key (id_genero) alter table interprete add primary key (id_interprete) alter table cds add primary key (id_cds) alter table canciones add primary key (id_canciones)

alter table pedidos add id_pedidos varchar(15) foreign key(id_pedidos) references pedidos(id_pedidos)

alter table cds add id_genero varchar(15) foreign key(id_genero) references cds(id_genero) alter table canciones add id_cds varchar(15) foreign key(id_cds) references canciones(id_cds) alter table canciones add id_genero varchar(15) foreign key(id_genero) references canciones(id_genero) alter table canciones add id_interprete varchar(15) foreign key(id_interprete) references canciones(id_interprete)

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->