Download
logical data model n.
Skip this Video
Loading SlideShow in 5 Seconds..
Logical Data Model PowerPoint Presentation
Download Presentation
Logical Data Model

Logical Data Model

114 Vues Download Presentation
Télécharger la présentation

Logical Data Model

- - - - - - - - - - - - - - - - - - - - - - - - - - - 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