Progettare un database che possa permettere di gestire i dati in

annuncio pubblicitario
Progettare un database che possa permettere di gestire i dati in merito ai voli, alle destinazioni
prenotate dai clienti.
1) CLIENTI(codclienti, cognome, nome, datanasc, indirizzo, città, cap, codfisc)
2) VOLO(codvolo, giornopart, giornoarr, orariopart, orarioarr, prezzo, coddest)
3) DESTINAZIONE(coddest, città, aeroporto, nazione)
1:2  N:N
1:3  //
4) PRENOTAZIONE(codprenot, codclienti, codvolo, dataprenot)
1:4
1:N
2:4
1:N
1:2
1:N1:N
CLIENTI
ENTITA’
Clienti
1:N
PRENOTAZIONE
ATTRIBUTI
Codclienti
Cognome
Nome
Datanasc
Indirizzo
Città
Cap
Codfisc
Volo
Codvolo
Giornopart
Giornoarr
Orariopart
Oarioarr
Prezzo
Coddest
Destinazione Coddest
Città
Aeroporto
Nazione
Prenotazione Codprenot
Codclienti
Codvolo
dataprenot
DIMENSIONE
5
50
50
50
50
5
16
5
10
5
5
50
50
50
5
5
5
N:1
VOLO
TIPOLOGIA
Char
Char
Char
Date
Char
Char
char
Char
Char
Date
Date
Date
Date
Double
Char
Char
Char
Char
Char
Char
Char
Char
Date
N:1
DESTINAZIONE
OBBLIGATORIETA’
Sì
Sì
Sì
Sì
Sì
Sì
Sì
Sì
Sì
Sì
Sì
Sì
Sì
Sì
Sì
Sì
Sì
Sì
Sì
Sì
Sì
Sì
Sì
CHIAVE
PK
PK
FK
PK
PK
FK
FK
Scarica