1 / 19

Logical Data Model

Logical Data Model. How to convert to a rational model?. STUDENT. Name LastName Address. STUDENT. IDNumber Name LastName Address. Entities. Each entity class becomes a table with attributes the entity attributes. The primary key is the entity identifier or a special number. AUTHOR.

hailey
Download Presentation

Logical Data Model

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. Logical Data Model How to convert to a rational model? Bogdan Shishedjiev Logical Data Model

  2. STUDENT Name LastName Address STUDENT IDNumber Name LastName Address Entities • Each entity class becomes a table with attributes the entity attributes. The primary key is the entity identifier or a special number Bogdan Shishedjiev Logical Data Model

  3. AUTHOR BOOK NoAuthor Name NoBook BookName NoAuthor Binary Associations • Cardinality x,1 – x,N Bogdan Shishedjiev Logical Data Model

  4. PERSON Id Name CAR CarId Brand Model OwnerId PurchaseData Binary Associations • Cardinality x,1 – x,N Bogdan Shishedjiev Logical Data Model

  5. MEMBERCARD CUSTOMER NoCard IssueDate OwnerID CustID Name Address Binary Associations • Cardinality 0,1 – 1,1 Bogdan Shishedjiev Logical Data Model

  6. LOCKER STUDENT No Volume StudID StudID Name Name Address Binary Associations • Cardinality 0,1 – 0,1 or 1,1 – 1,1 LOCKER STUDENT No Volume StudID Name Name Address LockNo Bogdan Shishedjiev Logical Data Model

  7. SUBJECT ENROLL StudID SubjID SubjID NameSubj STUDENT StudID Name Name Address Binary Associations • Cardinality x,N – x,N Bogdan Shishedjiev Logical Data Model

  8. RESTATE OWNS OwnID EstjID part EstID address OWNER OwnID Name Binary Associations • Cardinality x,N – x,N Bogdan Shishedjiev Logical Data Model

  9. SUBJECT ROOM LECTURE TeachID SubjID RoomNo Hours SubjID NameSubj RoomNo Places TEACHER TeachID Name Ternary Association Bogdan Shishedjiev Logical Data Model

  10. Special Cases More than one association OWN HOUSE OwnID address PERSON address Postcode Id Name address Bogdan Shishedjiev Logical Data Model

  11. Special Cases Reflexive associations PERSON Id Name WifeId Bogdan Shishedjiev Logical Data Model

  12. Special Cases Reflexive associations OWNS MotherID DaughterID percentage COMPANY CompanyId address Bogdan Shishedjiev Logical Data Model

  13. BUILDING APARTMENT Address ApartNo Address Floor Weak Entity Bogdan Shishedjiev Logical Data Model

  14. Subtypes Article(ArticleId,Name,Price) Keyboard(ArticleId,SerialID,NKeys,Producer) CPU(ArticleId,brand,Freq,Cache) Monitor(ArticleId,SerialID,screensize) Bogdan Shishedjiev Logical Data Model

  15. EMPLOYEE JOBHISTORY EmpNo Name Job Salary Coefficient EmpNo DateMod newjob Historicizing Bogdan Shishedjiev Logical Data Model

  16. CONTAINS ORDERN SUPPLIER ProductID OrderNo Quantity OrdNo Date SupID SupID Name Example PRODUCT ProductID Name Bogdan Shishedjiev Logical Data Model

  17. Exercise Bogdan Shishedjiev Logical Data Model

  18. Case Study - Policlinic Bogdan Shishedjiev Logical Data Model

  19. Case Study - Policlinic Bogdan Shishedjiev Logical Data Model

More Related