1 / 10

PROGETTAZIONE DI UN DATABASE

ESERCIZIO N.1. PROGETTAZIONE DI UN DATABASE. Anna Lazazzara Matricola 562078. SCHEMA ENTITA’-RELAZIONI. Clienti/Amici. L ibri. N:N. Prestiti. PROGETTAZIONE CONCETTUALE. Clienti/amici. Per l’entità clienti/amici sono stati individuati i seguenti attributi:.

matt
Download Presentation

PROGETTAZIONE DI UN DATABASE

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ESERCIZIO N.1 PROGETTAZIONE DI UN DATABASE Anna Lazazzara Matricola 562078

  2. SCHEMA ENTITA’-RELAZIONI Clienti/Amici Libri N:N Prestiti

  3. PROGETTAZIONE CONCETTUALE Clienti/amici Per l’entità clienti/amici sono stati individuati i seguenti attributi: Id cliente/amico Nome cliente/amico Cognome cliente/amico Soprannome cliente/amico Indirizzo Telefono

  4. PROGETTAZIONE CONCETTUALE Libri Per l’entità libri sono stati individuati i seguenti attributi: Id libro Titolo Autore Genere

  5. PROGETTAZIONE CONCETTUALE Prestiti Per l’entità proprietario prestiti sono stati individuati i seguenti attributi: Id prestiti Codice libro Codice Clienti/amici Data prestito Data restituzione

  6. PROGETTAZIONE LOGICA DEFINIZIONE DELLE CARATTERISTICHE DEGLI ATTRIBUTI

  7. PROGETTAZIONE LOGICA DEFINIZIONE DELLE CARATTERISTICHE DEGLI ATTRIBUTI

  8. PROGETTAZIONE LOGICA DEFINIZIONE DELLE CARATTERISTICHE DEGLI ATTRIBUTI

  9. ESERCIZIO N.2 LE CHIAVI SONO: • “Cod” per la relazione Reparti • “Cod” per la relazione Pazienti • “Paziente”e “Inizio” per la relazione Ricoveri • “Matr” per la relazione Medici

  10. VALORI NULLI: • Possono assumere valori nulli gli attributi: • “Cognome” e “Nome” nella relazione Pazienti • “Fine” nella relazione Ricoveri • “Nome” e “Cognome” nella relazione Medici • “Nome”nella relazione Reparti • Questi attributi,infatti,non sono chiavi e non hanno alcun vincolo di integrità referenziale

More Related