Schemi Schema ID Schema s 01 Relazionale s

  • Slides: 7
Download presentation
Schemi Schema ID Schema s 01 Relazionale s 02 E-R s 03 O-O

Schemi Schema ID Schema s 01 Relazionale s 02 E-R s 03 O-O

Relazionale: Modello Studente Matricola Cognome Nome Secondo nome Data di Nascita Corso Codice Esame

Relazionale: Modello Studente Matricola Cognome Nome Secondo nome Data di Nascita Corso Codice Esame Studente Voto Codice Corso Numero Titolo Docente

Relazionale: Supermodello Aggregation. Of. Lexical ID Name Schema a 01 Studente s 01 a

Relazionale: Supermodello Aggregation. Of. Lexical ID Name Schema a 01 Studente s 01 a 02 Corso s 01 ID Name Is. Key Is. Nullable Type Member. Of Schema a 03 Esame s 01 c 01 Matricola True False Int a 01 s 01 c 02 Cognome False String a 01 s 01 c 03 Nome False String a 01 s 01 c 04 Secondo Nome False True String a 01 s 01 Foreign. Key Component. Of. Aggregation. Of. Lexical ID From To Schema c 05 Data di Nascita False String a 01 s 01 f 01 a 03 a 01 s 01 c 06 Codice True False String a 02 s 01 f 02 a 03 a 02 s 01 c 07 Numero True False Int a 02 s 01 c 08 Titolo False String a 02 s 01 c 09 Docente False String a 02 s 01 c 10 Studente True False Int a 03 s 01 Foreign. Key. Component ID From To FK Schema c 11 Voto False Int a 03 s 01 k 01 c 10 c 01 f 01 s 01 c 12 Codice Corso True False String a 03 s 01 k 02 c 12 c 06 f 02 s 01 c 13 Numero Corso True False Int a 03 s 01 k 03 c 13 c 07 f 02 s 01

Giocatore Portiere data 0, N risultato Calciatore gol subiti gol fatti anno fondazione nome

Giocatore Portiere data 0, N risultato Calciatore gol subiti gol fatti anno fondazione nome età presenze nome cognome E-R: Modello Squadra 0, N 1, 1 Partita

E-R: Supermodello Abstract ID Name Schema e 01 Calciatore s 02 e 02 Giocatore

E-R: Supermodello Abstract ID Name Schema e 01 Calciatore s 02 e 02 Giocatore s 02 e 03 Portiere s 02 e 04 Squadra s 02 e 05 Partita s 02 Attribute. Of. Abstract ID Name Is. Identifier Is. Nullable Type Abstract Schema a 01 Nome True False String e 01 s 02 a 02 Cognome True False String e 01 s 02 a 03 Età False Int e 01 s 02 a 04 Presenze False Int e 01 s 02 a 05 Gol Fatti False Int e 02 s 02 a 06 Gol Subiti False Int e 03 s 02 a 07 Nome True False String e 04 s 02 a 08 Anno Fondazione False Int e 04 s 02 Child. Of. Generalization a 09 Data True False String e 05 s 02 ID Child Gener. Schema a 10 Risultato False True String e 05 s 02 h 01 e 02 g 01 s 02 h 02 e 03 g 01 s 02 Generalization. Of. Abstract ID Is. Total Father Schema g 01 True e 01 s 02 Binary. Aggregation. Of. Abstracts ID Name Abs 1 Is. Id Is. Opt 1 Is. Fun 1 Abs 2 Is. Opt 2 Is. Fun 2 Schema r 01 Membro e 01 False True False e 04 True False s 02 r 02 Casa e 05 True False True e 04 True False s 02 r 03 Ospite e 05 True False True e 04 True False s 02

O-O: Modello Persona Indirizzo nome cognome CF indirizzo via numero CAP città Studente Lavoratore

O-O: Modello Persona Indirizzo nome cognome CF indirizzo via numero CAP città Studente Lavoratore matricola università stipendio dipendente società Società Università nome indirizzo

O-O: Supermodello Attribute. Of. Abstract ID Name Is. Nullable Type Abstract Schema ID Name

O-O: Supermodello Attribute. Of. Abstract ID Name Is. Nullable Type Abstract Schema ID Name Schema a 01 Nome False String e 01 s 03 e 01 Persona s 03 a 02 Cognome False String e 01 s 03 e 02 Indirizzo s 03 a 03 CF False String e 01 s 03 e 03 Studente s 03 a 04 Via False String e 02 s 03 e 04 Lavoratore s 03 a 05 Numero True Int e 02 s 03 e 05 Società s 03 a 06 CAP False Int e 02 s 03 e 06 Università s 03 a 07 Città False String e 02 s 03 a 08 Matricola False Int e 03 s 03 a 09 Stipendio False Int e 04 s 03 a 10 Dipendente False Bool e 04 s 03 Generalization. Of. Abstract ID Is. Total Father Schema a 11 Nome False String e 05 s 03 g 01 True e 01 s 03 a 12 Nome False String e 06 s 03 Reference. Attribute. Of. Abstracts Child. Of. Generalization ID Name Is. Optional From To Schema ID Child General. Schema r 01 Indirizzo False e 01 e 02 s 03 h 01 e 03 g 01 s 03 r 02 Università False e 03 e 06 s 03 h 02 e 04 g 01 s 03 r 03 Società False e 04 e 05 s 03 r 04 Indirizzo False e 05 e 02 s 03 r 05 Indirizzo False e 06 e 02 s 03