Professional Documents
Culture Documents
Topic 8. Semantic Data Modeling: Conceptual Model
Topic 8. Semantic Data Modeling: Conceptual Model
Logical
Model
HNEU,
Physical Department of Information Systems,
Model Databases Course,
V. V. Fedko
Contents
1. Entity-relationship model
2. Relationships between entities
3. Attributes and Keys
4. Strong and Weak Types
5. Extended Entity-Relationship Modeling (EERM)
6. Selection of Primary Keys
Binary
Discipline
Quaternary
Ternary
Student Student
1 M Manufacturer`s N 1
Manufacturer Produce Is Product
_Product
Person
Entity Teacher = Superclass Person +
Name Subclass Teacher =
Address (Name, Address, Department, Discipline)
A member of the Teacher subclass
Teacher Student inherits all the attributes of the Person
superclass, together with those
Department Faculty specifically associated with the Teacher
subclass
Discipline Course
Group
HNEU, Department of Information Systems, Course Database, V. V. Fedko 21
Inheritance of Primary Key & Relationship
All entity subtypes inherit their primary key attribute from their supertype:
Entity Teacher = (Name, Address, Department, Discipline)
Entity subtypes inherit all relationships in which the supertype entity
participates:
University consist of Teacher
University consist of Person ⇒ University consist of Student
Discipline Course
Department Group
Faculty
Person_type Person_type
Surrogate Keys
A surrogate key is a new attribute that has no business meaning.
Product = (ProductId, Product_name, Price, Purchase_price)
Sale = (SaleId, Sale_date, Manufacturer_name, Product_name, Quantity)