





































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






































Dr Azadeh Ghari Neiat School of Computer Science
Announcements
Outline
Conceptual Database Design › What is conceptual database design? › What is the purpose of conceptual database design?
Conceptual Database Design (Cont’d)
Conceptual Data Models
Entity-Relationship Model (Cont’d)
Entities & Entity Type › Entity is an individual object in the real word, e.g., a person, place, object, event, or concept about which you want to gather and store data.
entity type An
Graphical Representation in E-R Diagram Entity Types represented by a rectangle Attributes depicted by ellipses Keys are underlined Double ellipses for multi-valued attributes entity type isbn Book title authors
entity type An Remarks: Book.authors is a multi-valued attribute ; Employee.name is a composite attribute. Employee.Age is a derived attribute first last tfn Employee name DOB Age multi-valued attribute composite derived
Relationships › Relationship : relates two or more entities
Relationship Attributes and Roles › Relationship-Attribute: Relationships can also have descriptive attribute.
Graphical Representation of Relationships in E-R Diagrams AcademicStaff teaches Subject Entity-Type 1 Relship-Type Entity-Type (^2) A 1 An
... Symbol : Example RoleName RoleName Year Lecturer Diamonds represent relationship types Lines link attributes to entity types and entity types to relationship types. Roles are edges labeled with role names
Decision: Relationship vs. Entity? Product Purchased name (^) category price Person name date Modeling something as a relationship makes it unique; what if not appropriate?
Decision: Relationship vs. Entity? › Q: What about this way? › A: Now we can have multiple purchases per product, person pair! Product name (^) category price Person name date Purchase PID# quantity ProductOf BuyerOf We can always use a new entity instead of a relationship. For example, to permit multiple instances of each entity combination!