Entity Relationship Modeling: Objectives
Entity Relationship Modeling: Objectives
Objectives:
Notation
Entity Attribute Relationship EntityName EntityName List of Attributes Verb phrase
Acceptable
Entities
Examples of entities:
Person: LECTURER, STUDENT Place: CLASS ROOM, WAREHOUSE Object: MACHINE, PRODUCT, CAR Event: REGISTRATION, LECTURE Concept: COURSE, LECTURE
Attributes
Example of entity types and associated attributes:
STUDENT: Student_ID, Student_Name, Home_Address, Phone_Number, B_Date
distinguishing names.
Relationship
Associations between instances of one or more entity types that is of interest Given a name that describes its function. relationship name is an active or a passive verb.
An Lecturer gives lecture on one or more Subjects A Subject can be taught by one or more lecturer.
Relationship
The degree of a relationship = the number of entity
Notations
Notations
Example
Tables
Student PK N_ID
F_Name
L_Name Enrollment Stud_ID CK Course_Name CC# Enroll_Date Lecture PK CC# Subject Time Date FK FK FK FK Address B_Date PK
Subject
Subject_Dscription Subject_Unit Subject_Code
Lecturer_ID
FK
PK
Lecturer_ID