Database: maturita_2005_abacus_v2

Tabella: album

Indici:

Nome Tipo
PRIMARY Id_Album

Campi:

Nome Tipo NULL Default Extra
Id_Album int(10) unsigned      
Durata_Album time      
Titolo varchar(200)      

Dati:

Id_Album Durata_Album Titolo
1 01:35:40 K come Camaleonti
2 01:55:04 Ciao Ciao
3 02:37:19 Il meglio della classica
4 02:05:27 The best Mix

Tabella: album_brani

Indici:

Nome Tipo
PRIMARY Id_Album,Id_Brano
Id_Brano Id_Brano

Campi:

Nome Tipo NULL Default Extra
Id_Album int(10) unsigned   0  
Id_Brano int(10) unsigned   0  

Constraints:

Nome Tipo
Constraint album_brani_ibfk_1 (Id_Album) -> album (Id_Album)
Constraint album_brani_ibfk_2 (Id_Brano) -> brani (Id_Brano)

Dati:

Id_Album Id_Brano
3 1
2 2
4 2
1 3
4 3
1 4
2 5

Tabella: artisti

Indici:

Nome Tipo
PRIMARY Id_Artista

Campi:

Nome Tipo NULL Default Extra
Id_Artista int(10) unsigned      
NomeArtista varchar(40)      
TipoArtista enum('Gruppo','Orchestra','Artista')      
Direttore varchar(40) NULL    
Periodo_Attivita tinyint(4) unsigned NULL    
NoteArtista text NULL    
Attivo tinyint(1)      

Dati:

Id_Artista NomeArtista TipoArtista Direttore Periodo_Attivita NoteArtista Attivo
1 Pooh Gruppo   28 <MEMO> 1
2 Camaleonti Gruppo   23 <MEMO> 0
3 Filarmonica Berlino Orchestra von Rubistein 210   1
4 Beethoven Artista   38 <MEMO> 0
5 Mogol Artista   45 <MEMO> 1
6 Battisti Artista   36 <MEMO> 1

Tabella: artisti_brani_autori

Indici:

Nome Tipo
PRIMARY Id_Artista,Id_Brano
Id_Brano Id_Brano

Campi:

Nome Tipo NULL Default Extra
Id_Artista int(10) unsigned   0  
Id_Brano int(10) unsigned   0  

Constraints:

Nome Tipo
Constraint artisti_brani_autori_ibfk_1 (Id_Artista) -> artisti (Id_Artista)
Constraint artisti_brani_autori_ibfk_2 (Id_Brano) -> brani (Id_Brano)

Dati:

Id_Artista Id_Brano
4 1
6 2
5 3
6 4
5 5

Tabella: artisti_brani_interpreti

Indici:

Nome Tipo
PRIMARY Id_Artista,Id_Brano
Id_Brano Id_Brano

Campi:

Nome Tipo NULL Default Extra
Id_Artista int(10) unsigned   0  
Id_Brano int(10) unsigned   0  

Constraints:

Nome Tipo
Constraint artisti_brani_interpreti_ibfk_1 (Id_Artista) -> artisti (Id_Artista)
Constraint artisti_brani_interpreti_ibfk_2 (Id_Brano) -> brani (Id_Brano)

Dati:

Id_Artista Id_Brano
3 1
1 2
2 3
2 4
1 5

Tabella: brani

Indici:

Nome Tipo
PRIMARY Id_Brano
Id_Sottogenere Id_Sottogenere
Id_Artista Id_Artista

Campi:

Nome Tipo NULL Default Extra
Id_Brano int(10) unsigned      
Titolo varchar(40)      
DataComposizione date NULL    
Durata time      
Id_Sottogenere int(10) unsigned      
Id_Artista int(10) unsigned      

Constraints:

Nome Tipo
Constraint brani_ibfk_1 (Id_Sottogenere) -> sottogeneri (Id_Sottogenere)
Constraint brani_ibfk_2 (Id_Artista) -> artisti (Id_Artista)

Dati:

Id_Brano Titolo DataComposizione Durata Id_Sottogenere Id_Artista
1 Preludio 3a di Bheetoven 1782-01-01 00:36:50 12 3
2 Piccola Ketty 1975-05-23 00:05:45 3 1
3 Bella senz'anima 1971-09-13 00:04:55 4 2
4 Gecko 1975-06-01 00:07:10 3 2
5 Solo noi 1978-11-26 00:05:45 3 1

Tabella: edizioni

Indici:

Nome Tipo
PRIMARY Id_Edizione
Id_Album Id_Album

Campi:

Nome Tipo NULL Default Extra
Id_Edizione int(10) unsigned      
DataUscita date      
Immagine_Copertina mediumblob NULL    
Id_Album int(10) unsigned NULL    

Constraints:

Nome Tipo
Constraint edizioni_ibfk_1 (Id_Album) -> album (Id_Album)

Dati:

Id_Edizione DataUscita Immagine_Copertina Id_Album
1 1970-02-09 <BLOB> 1
2 1980-04-27 <BLOB> 1
3 1975-07-14 <BLOB> 2
4 1999-04-20 <BLOB> 3
5 1987-11-28 <BLOB> 2
6 1984-04-25 <BLOB> 4

Tabella: generi

Indici:

Nome Tipo
PRIMARY Id_Genere

Campi:

Nome Tipo NULL Default Extra
Id_Genere int(10) unsigned      
Descrizione varchar(50)      

Dati:

Id_Genere Descrizione
1 Popolare
2 Classico

Tabella: sottogeneri

Indici:

Nome Tipo
PRIMARY Id_Sottogenere
Id_Genere Id_Genere

Campi:

Nome Tipo NULL Default Extra
Id_Sottogenere int(10) unsigned      
Descrizione varchar(50)      
Id_Genere int(10) unsigned NULL    

Constraints:

Nome Tipo
Constraint sottogeneri_ibfk_1 (Id_Genere) -> generi (Id_Genere)

Dati:

Id_Sottogenere Descrizione Id_Genere
1 Avanguardia 1
2 Blues 1
3 Elettronica 1
4 Folk 1
5 Jazz 1
6 New Age 1
7 Rap 1
8 Rock 1
9 Musica da camera 2
10 Concerto 2
11 Opera 2
12 Sinfonia 2
13 Musica corale 2