Sunteți pe pagina 1din 11

CREATE DATABASE musica;

USE musica;
--- Table structure for table `musi80_03`.`artista`
-DROP TABLE IF EXISTS `artista`;
CREATE TABLE `artista` (
`dni` varchar(10) NOT NULL,
`nombre` varchar(30) NOT NULL,
PRIMARY KEY (`dni`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `musi80_03`.`artista`
-/*!40000 ALTER TABLE `artista` DISABLE KEYS */;
LOCK TABLES `artista` WRITE;
INSERT INTO `artista` VALUES ('1111111111','Adrian Lee'),
('1111111112','Adam Clayton'),
('1111111113','Bono'),
('1111111114','C. Burchill'),
('1111114444','Carlos Torero'),
('2345678444','Edge'),
('3232456547','Phil Collins'),
('3333567898','Santiago Auseron'),
('3454677777','Jim Kerr'),
('4444444444','Larry Jr.Mullen'),
('4454321111','Luis Auseron'),
('5454532222','Paul Young'),
('5555678976','Enrique Sierra'),
('5556787777','J.L. Gimnez'),
('5656378999','Soledad Gimnez'),
('6666667885','Nacho Mao'),
('7654323234','P. van Hooke'),
('7876543428','Tony Banks'),
('8884566666','M. Rutherford');
UNLOCK TABLES;
/*!40000 ALTER TABLE `artista` ENABLE KEYS */;
--- Table structure for table `musi80_03`.`cancion`
-DROP TABLE IF EXISTS `cancion`;
CREATE TABLE `cancion` (
`cod` int(10) NOT NULL,
`titulo` varchar(30) NOT NULL,
`duracion` double(15,5) default NULL,
PRIMARY KEY (`cod`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `musi80_03`.`cancion`
-/*!40000 ALTER TABLE `cancion` DISABLE KEYS */;

LOCK TABLES `cancion` WRITE;


INSERT INTO `cancion` VALUES (1,'20th Century Promise',4.00000),
(2,'37 grados',4.00000),
(3,'4th of July',3.00000),
(4,'7 Deadly Sins',6.00000),
(5,'A cara o cruz',5.00000),
(6,'A sort of homecoming',3.00000),
(7,'Afterglow',4.00000),
(8,'Al atardecer',4.00000),
(9,'Al sur',3.00000),
(10,'Alive And Kicking',4.00000),
(11,'All The things She..',4.00000),
(12,'Alma de blues',4.00000),
(13,'And The Band ...',4.00000),
(14,'Andas junto a m',3.00000),
(15,'Annabel Lee',3.00000),
(16,'Anything she does',3.00000),
(17,'Artitoestoy',4.00000),
(18,'Asoma el llanto',3.00000),
(19,'Babyface',4.00000),
(20,'Bad',2.00000),
(21,'Barbara del campo',4.00000),
(22,'Beautiful day',5.00000),
(23,'Before',4.00000),
(24,'Black and blue',3.00000),
(25,'Blame',4.00000),
(26,'Book of Brilliant...',5.00000),
(27,'Brazilian',4.00000),
(28,'Cada historia',3.00000),
(29,'Can\'t dance',4.00000),
(30,'Careful In Career',4.00000),
(31,'Carpet crawlers',4.00000),
(32,'Cinema show',5.00000),
(33,'Come A Long Way',2.00000);
INSERT INTO `cancion` VALUES (34,'Como hemos cambiado',3.00000),
(35,'Criminal World',5.00000),
(36,'Cuando quiero sol',5.00000),
(37,'Daddys Goma pay for',5.00000),
(38,'Dance on a volcano',4.00000),
(39,'De puntillas',3.00000),
(40,'De sol a sol',4.00000),
(41,'Dirty day',5.00000),
(42,'Domino',5.00000),
(43,'Don\'t',4.00000),
(44,'Dreaming while ...',4.00000),
(45,'Driving the last...',4.00000),
(46,'E.de C. instrumental',3.00000),
(47,'East At Easter',4.00000),
(48,'El canto del gallo',5.00000),
(49,'El hombre de papel',2.00000),
(50,'El nadador',3.00000),
(51,'Elvis Presley & USA',3.00000),
(52,'En Portugal',3.00000),
(53,'En la oscuridad',5.00000),
(54,'En un baile de perro',2.00000),
(55,'Encadenada',4.00000),
(56,'Escuela de calor',3.00000),
(57,'Even Better Than...',3.00000),
(58,'Every body gets...',5.00000),
(59,'Fading lights',5.00000),

(60,'Fire',4.00000),
(61,'Firth of fith',4.00000),
(62,'Fly',4.00000),
(63,'Get up',4.00000),
(64,'Ghostdancing',3.00000),
(65,'Gloria',3.00000);
INSERT INTO `cancion` VALUES (67,'Great Leap Forward',4.00000),
(68,'Guitarra y voz',1.00000),
(69,'Hadaly',3.00000),
(70,'Hay algo raro...',3.00000),
(71,'Historia de playback',3.00000),
(72,'Hypnotised',5.00000),
(73,'I Fall Down',4.00000),
(74,'I Threw a Brick',3.00000),
(75,'I Wish You Were Here',4.00000),
(76,'I know what I like',3.00000),
(77,'Icaro',3.00000),
(78,'In the glow of night',4.00000),
(79,'In too deep',4.00000),
(80,'Indian summer sky',4.00000),
(81,'Invisible touch',3.00000),
(82,'Is That All',3.00000),
(83,'Jesus he knows me',5.00000),
(84,'La futura promesa',3.00000),
(85,'La ley',4.00000),
(86,'La mala hora',3.00000),
(87,'La negra flor',5.00000),
(88,'La noche',2.00000),
(89,'La secta del mar',3.00000),
(90,'Lamb lies down...',5.00000),
(91,'Land of confusion',4.00000),
(92,'League Of nations',4.00000),
(93,'Lemon',6.00000),
(94,'Let\'s pretend...',5.00000),
(95,'Living forever',4.00000),
(96,'Living years',4.00000),
(97,'Llovi',2.00000),
(98,'Lluvia del porvenir',3.00000);
INSERT INTO `cancion` VALUES (99,'Los endos',4.00000),
(100,'Love is Blindness',4.00000),
(101,'Luna de agosto',3.00000),
(102,'MLK',2.00000),
(103,'Me das el mar',3.00000),
(104,'Mil mariposas',3.00000),
(105,'Moon Cry Like A Baby',4.00000),
(106,'Musical box',4.00000),
(107,'My Life',4.00000),
(108,'My crime of passion',3.00000),
(109,'Mysterious Ways',4.00000),
(110,'Nada tiene sentido',3.00000),
(111,'Never a time',5.00000),
(112,'Ni tu ni yo',3.00000),
(113,'Night Music',4.00000),
(114,'No hay humor',3.00000),
(115,'No hay palabras',3.00000),
(116,'No son of mine',4.00000),
(117,'Nobody knows',3.00000),
(118,'Nobody\'s perfect',3.00000),
(119,'Numb',4.00000),
(120,'October',3.00000),

(121,'Oh Jungleland',3.00000),
(122,'Once Upon A Time',4.00000),
(123,'One',4.00000),
(124,'Oscuro affaire',3.00000),
(125,'Poor boy down',2.00000),
(126,'Price',1.00000),
(127,'Promenade',3.00000),
(128,'Recibes cartas',3.00000),
(130,'Rejoice',4.00000),
(131,'Rio Po',4.00000),
(132,'Robbery, assault...',3.00000);
INSERT INTO `cancion` VALUES (133,'Sanctify yourself',4.00000),
(134,'Scarlet',4.00000),
(135,'Sed de amor',4.00000),
(136,'Seeing is believing',5.00000),
(137,'Semilla negra',4.00000),
(138,'Sentir tu calor',4.00000),
(139,'Ser de agua',3.00000),
(140,'Shake Of The Ghosts',3.00000),
(141,'She\'s A river',3.00000),
(142,'Since I lost you',4.00000),
(143,'So Cruel',6.00000),
(144,'Some days are better',4.00000),
(145,'Sound In 70 Cities',4.00000),
(146,'Speed Your Love...',4.00000),
(147,'Squok',4.00000),
(148,'Stay',4.00000),
(149,'Stop baby',4.00000),
(150,'Stranger in a Land',4.00000),
(151,'Street Hassle',4.00000),
(152,'Supper\'s ready',5.00000),
(153,'Tell me why',5.00000),
(154,'The Kick Inside ofme',4.00000),
(155,'The american',4.00000),
(156,'The first time',3.00000),
(157,'The last domino',5.00000),
(158,'The unforgettable fi',5.00000),
(159,'The wanderer',4.00000),
(160,'Theme For Great city',3.00000),
(161,'This Time',3.00000),
(162,'Throwing it all away',4.00000),
(163,'Time and place',4.00000);
INSERT INTO `cancion` VALUES (164,'Tomorrow',3.00000),
(165,'Tonight, tonight...',4.00000),
(166,'Tormenta de arena',4.00000),
(167,'Tryin to Throw...',4.00000),
(168,'Ultra Violet',5.00000),
(169,'Un africano...',3.00000),
(170,'Until The end...',5.00000),
(171,'Up On The Catwalk',4.00000),
(172,'Volviendo a casa',3.00000),
(173,'Waterfront',3.00000),
(174,'Way of the world',5.00000),
(175,'Way you look at me',3.00000),
(176,'White Hot Day',5.00000),
(177,'Whos Gonna ride...',5.00000),
(178,'Why me?',3.00000),
(179,'Wire',2.00000),
(180,'With a Shout',4.00000),
(181,'Wonderful In Young',5.00000),

(182,'Word of mouth',3.00000),
(183,'Yesterday, today,..',2.00000),
(184,'Zoo Station',4.00000),
(185,'Zooropa',6.00000),
(186,'Hold on my heart',4.00000);
UNLOCK TABLES;
/*!40000 ALTER TABLE `cancion` ENABLE KEYS */;
--- Table structure for table `musi80_03`.`club`
-DROP TABLE IF EXISTS `club`;
CREATE TABLE `club` (
`cod` varchar(3) NOT NULL,
`nombre` varchar(30) NOT NULL,
`sede` varchar(30) default NULL,
`num` smallint(5) default NULL,
`cod_gru` varchar(3) NOT NULL,
PRIMARY KEY (`cod`),
KEY `grupoclub` (`cod_gru`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `musi80_03`.`club`
-/*!40000 ALTER TABLE `club` DISABLE KEYS */;
LOCK TABLES `club` WRITE;
INSERT INTO `club` VALUES ('1 ','Zoomania','33, Abbey Road',2508,'1 '),
('10 ','Machines','Calle 3, Lab 3',7789,'3 '),
('11 ','Jardin Botanico','203,Valencia 46004',357,'6 '),
('12 ','Bonoculture','12, East Av.',129,'1 '),
('13 ','Waterfront','C/Martin Blas 22',234,'2 '),
('14 ','FanMike','Beverly Hills 90210',11,'3 '),
('15 ','Presuntos','C/Albacete 12, bajo',237,'5 '),
('16 ','Implicado','Torrejon de Ardoz 12',25,'5 '),
('17 ','Los Culpables','C/Maria Cristina 67',355,'5 '),
('2 ','u2foryou','23, 11th Street',1700,'1 '),
('3 ','Che U2','C/Almussafes 59',239,'1 '),
('4 ','Troglominds','C/Lepe 22',999,'2 '),
('5 ','Mentes Fuertes','Ramon y Cajal 14',1984,'2 '),
('6 ','The best mind','24, Homeround',1413,'2 '),
('7 ','Genefans','C/Visitacion 34',23412,'4 '),
('8 ','Fanaticgens','Av. H. Dominicos 155',12002,'4 '),
('9 ','Futuristas','C/Alboraya 10',9850,'6 ');
UNLOCK TABLES;
/*!40000 ALTER TABLE `club` ENABLE KEYS */;
--- Table structure for table `musi80_03`.`companyia`
-DROP TABLE IF EXISTS `companyia`;
CREATE TABLE `companyia` (
`cod` varchar(3) NOT NULL,
`nombre` varchar(30) NOT NULL,
`dir` varchar(30) default NULL,

`fax` varchar(15) default NULL,


`tfno` varchar(15) default NULL,
PRIMARY KEY (`cod`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `musi80_03`.`companyia`
-/*!40000 ALTER TABLE `companyia` DISABLE KEYS */;
LOCK TABLES `companyia` WRITE;
INSERT INTO `companyia` VALUES ('1 ','Island','67, JB St.','
78782222','
72724444'),
('2 ','ARIOLA','Aragon 204','
913667889','
913667890'),
('3 ','WEA','L Hoyos 42','
932401212','
932401213'),
('4 ','Virgin','2,23th St.','
20812445','
20812446'),
('5 ','ATLANTIC','12, E St.','
5481223','
5482312'),
('6 ','PoliDiscos','Cami de Vera','
3870001','
3870000'),
('7 ','PoliDiscos','Polynesia St.','
942380540','
942380522');
UNLOCK TABLES;
/*!40000 ALTER TABLE `companyia` ENABLE KEYS */;
--- Table structure for table `musi80_03`.`disco`
-DROP TABLE IF EXISTS `disco`;
CREATE TABLE `disco` (
`cod` varchar(3) NOT NULL,
`nombre` varchar(30) default NULL,
`fecha` datetime default NULL,
`cod_comp` varchar(3) NOT NULL,
`cod_gru` varchar(3) NOT NULL,
PRIMARY KEY (`cod`),
KEY `companyiadisco` (`cod_comp`),
KEY `grupodisco` (`cod_gru`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `musi80_03`.`disco`
-/*!40000 ALTER TABLE `disco` DISABLE KEYS */;
LOCK TABLES `disco` WRITE;
INSERT INTO `disco` VALUES ('1 ','October','1981-10-12 00:00:00','1 ','1 '),
('10 ','Word of mouth','1991-05-07 00:00:00','5 ','3 '),
('11 ','We can\'t dance','1991-02-02 00:00:00','5 ','4 '),
('12 ','Invisible touch','1986-03-03 00:00:00','5 ','4 '),
('13 ','Seconds out','1986-08-08 00:00:00','5 ','4 '),
('14 ','De sol a sol','1987-01-08 00:00:00','3 ','5 '),
('15 ','Ser de agua','1991-02-05 00:00:00','3 ','5 '),
('16 ','Alma de blues','1989-02-03 00:00:00','3 ','5 '),
('17 ','La ley del desierto','1984-03-02 00:00:00','2 ','6 '),
('18 ','La cancin de Jperro','1987-04-03 00:00:00','2 ','6 '),
('2 ','Zooropa','1994-08-10 00:00:00','1 ','1 '),
('3 ','The unforgettable fi','1983-03-07 00:00:00','1 ','1 '),
('4 ','Achtung baby','1991-12-09 00:00:00','1 ','1 '),
('5 ','Once upon a time','1985-10-10 00:00:00','4 ','2 '),
('6 ','Good news F.N. world','1995-11-12 00:00:00','4 ','2 '),

('7 ','Sparkle in the rain','1984-03-03 00:00:00','4 ','2 '),


('8 ','Sister feelings call','1981-03-04 00:00:00','4 ','2 ');
INSERT INTO `disco` VALUES ('9 ','Living years','1988-04-02 00:00:00','5 ','3
');
UNLOCK TABLES;
/*!40000 ALTER TABLE `disco` ENABLE KEYS */;
--- Table structure for table `musi80_03`.`esta`
-DROP TABLE IF EXISTS `esta`;
CREATE TABLE `esta` (
`can` int(10) NOT NULL,
`cod` varchar(3) NOT NULL,
PRIMARY KEY (`can`,`cod`),
KEY `cancionesta` (`can`),
KEY `discoesta` (`cod`),
KEY `estacod` (`cod`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `musi80_03`.`esta`
-/*!40000 ALTER TABLE `esta` DISABLE KEYS */;
LOCK TABLES `esta` WRITE;
INSERT INTO `esta` VALUES (1,'8 '),
(2,'18 '),
(3,'3 '),
(4,'6 '),
(5,'18 '),
(6,'3 '),
(7,'13 '),
(8,'15 '),
(9,'14 '),
(10,'5 '),
(11,'5 '),
(12,'16 '),
(13,'6 '),
(14,'15 '),
(15,'18 '),
(16,'12 '),
(17,'4 '),
(18,'16 '),
(19,'2 '),
(20,'3 '),
(21,'15 '),
(22,'9 '),
(23,'10 '),
(24,'9 '),
(25,'9 '),
(26,'7 '),
(27,'12 '),
(28,'16 '),
(29,'11 '),
(30,'8 '),
(31,'13 '),
(32,'13 '),

(33,'5 '),
(34,'15 '),
(35,'6 '),
(36,'15 '),
(37,'2 '),
(38,'13 '),
(39,'15 '),
(40,'14 '),
(41,'2 '),
(42,'12 '),
(43,'9 '),
(44,'11 '),
(45,'11 '),
(46,'17 '),
(47,'7 '),
(48,'18 '),
(49,'18 '),
(50,'17 '),
(51,'3 '),
(52,'17 '),
(53,'14 '),
(54,'18 '),
(55,'16 '),
(56,'17 '),
(57,'4 '),
(58,'10 '),
(59,'11 '),
(60,'1 '),
(61,'13 '),
(62,'4 '),
(63,'10 '),
(64,'5 '),
(65,'1 '),
(67,'6 '),
(68,'16 '),
(69,'17 '),
(70,'14 '),
(71,'17 '),
(72,'6 '),
(73,'1 '),
(74,'1 '),
(75,'5 '),
(76,'13 '),
(77,'15 '),
(78,'12 ');
INSERT INTO `esta` VALUES (79,'12 '),
(80,'3 '),
(81,'12 '),
(82,'1 '),
(83,'11 '),
(84,'16 '),
(85,'17 '),
(86,'18 '),
(87,'18 '),
(88,'16 '),
(89,'17 '),
(90,'13 '),
(91,'12 '),
(92,'8 '),
(93,'2 '),

(94,'10 '),
(95,'11 '),
(96,'9 '),
(97,'15 '),
(98,'18 '),
(99,'13 '),
(100,'4 '),
(101,'18 '),
(102,'3 '),
(103,'16 '),
(104,'15 '),
(105,'7 '),
(106,'13 '),
(107,'6 '),
(108,'10 '),
(109,'4 '),
(110,'14 '),
(111,'11 '),
(112,'14 '),
(113,'6 '),
(114,'16 '),
(115,'16 '),
(116,'11 '),
(117,'9 '),
(118,'9 '),
(119,'2 '),
(120,'1 '),
(121,'5 '),
(122,'5 '),
(123,'4 '),
(124,'17 '),
(125,'9 '),
(126,'3 '),
(127,'3 '),
(128,'15 '),
(130,'1 '),
(131,'16 '),
(132,'13 '),
(133,'5 '),
(134,'1 '),
(135,'14 '),
(136,'9 '),
(137,'17 '),
(138,'15 '),
(139,'15 '),
(140,'7 '),
(141,'6 '),
(142,'11 '),
(143,'4 '),
(144,'2 '),
(145,'8 '),
(146,'7 '),
(147,'13 '),
(148,'2 '),
(149,'10 '),
(150,'1 '),
(151,'7 '),
(152,'13 ');
INSERT INTO `esta` VALUES (153,'11 '),
(154,'7 '),

(155,'8 '),
(156,'2 '),
(157,'12 '),
(158,'3 '),
(159,'2 '),
(160,'8 '),
(161,'6 '),
(162,'12 '),
(163,'10 '),
(164,'1 '),
(165,'12 '),
(166,'17 '),
(167,'4 '),
(168,'4 '),
(169,'17 '),
(170,'4 '),
(171,'7 '),
(172,'14 '),
(173,'7 '),
(174,'11 '),
(175,'10 '),
(176,'7 '),
(177,'4 '),
(178,'9 '),
(179,'3 '),
(180,'1 '),
(181,'8 '),
(182,'10 '),
(183,'10 '),
(184,'4 '),
(185,'2 '),
(186,'11 ');
UNLOCK TABLES;
/*!40000 ALTER TABLE `esta` ENABLE KEYS */;
--- Table structure for table `musi80_03`.`grupo`
-DROP TABLE IF EXISTS `grupo`;
CREATE TABLE `grupo` (
`cod` varchar(3) NOT NULL,
`nombre` varchar(30) NOT NULL,
`fecha` datetime default NULL,
`pais` varchar(10) default NULL,
PRIMARY KEY (`cod`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `musi80_03`.`grupo`
-/*!40000 ALTER TABLE `grupo` DISABLE KEYS */;
LOCK TABLES `grupo` WRITE;
INSERT INTO `grupo` VALUES ('1 ','U2','1977-01-01 00:00:00','Inglaterra'),
('2 ','Simple Minds','1979-02-09 00:00:00','Inglaterra'),
('3 ','Mike + The Mechanics','1988-04-06 00:00:00','Inglaterra'),
('4 ','Genesis','1975-10-10 00:00:00','Inglaterra'),
('5 ','Presuntos Implicados','1985-11-01 00:00:00','Espaa'),

('6 ','Radio Futura','1980-01-07 00:00:00','Espaa');


UNLOCK TABLES;
/*!40000 ALTER TABLE `grupo` ENABLE KEYS */;
--- Table structure for table `musi80_03`.`pertenece`
-DROP TABLE IF EXISTS `pertenece`;
CREATE TABLE `pertenece` (
`dni` varchar(10) NOT NULL,
`cod` varchar(3) NOT NULL,
`funcion` varchar(15) default NULL,
PRIMARY KEY (`dni`,`cod`),
KEY `artistapertenece` (`dni`),
KEY `grupopertenece` (`cod`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `musi80_03`.`pertenece`
-/*!40000 ALTER TABLE `pertenece` DISABLE KEYS */;
LOCK TABLES `pertenece` WRITE;
INSERT INTO `pertenece` VALUES ('1111111111','3 ','teclado'),
('1111111112','1 ','bajo'),
('1111111113','1 ','voz'),
('1111111114','2 ','guitarra'),
('1111114444','6 ','batera'),
('2345678444','1 ','guitarra'),
('3232456547','4 ','voz'),
('3333567898','6 ','voz'),
('3454677777','2 ','voz'),
('4444444444','1 ','batera'),
('4454321111','6 ','bajo'),
('5454532222','3 ','voz'),
('5555678976','6 ','guitarra'),
('5556787777','5 ','guitarra'),
('5656378999','5 ','voz'),
('6666667885','5 ','bajo'),
('7654323234','3 ','batera'),
('7876543428','4 ','teclado'),
('8884566666','3 ','bajo'),
('8884566666','4 ','bajo');

S-ar putea să vă placă și