Professional Documents
Culture Documents
§Entity - Refers to the entity set and not to a single entity occurrence (STUDENT(STUD_ID,
F_NAME, ADDRESS, PHONE))
3 Attributes
§Characteristics of entities
§Required attribute: Must have a value, cannot be left empty §Optional attribute: Does not
require a value, can be left empty §Domain - Set of possible values for a given attribute
§§
4 Figure 4.1 - The Attributes of the Student Entity: Chen and Crow’s Foot
5 Attributes
§Composite attribute: Attribute that can be subdivided to yield additional attributes (e.g.,
ADRESS – street, building, P.O box etc.)
§§
Attributes
8
6
7 Figure 4.4 – Splitting the Multivalued Attributes into New
Attributes
8 Attributes
§Derived attribute: Attribute whose value is calculated from other
attributes
§Derived using an algorithm §E.g AVE à (SUM/TOTAL)
§Association between entities that always operate in both directions §Connectivity: Describes
the relationship classification (1:1, 1:M,
M:N)
§Cardinality: Expresses the minimum and maximum number of entity occurrences associated
with one occurrence of related entity (Domain)
§§§
§Strong relationship
COURSE (CRS_CODE, DEPT_CODE, CRS_DESCRIPTION,
CRS_CREDIT)
CLASS (CLASS_CODE, CRS_CODE, CLASS_TIME, ROOM_NUM, PROF_ID)
15
16 Relationship Participation
18 Relationship Degree
§Indicates the number of entities or participants associated with a
relationship
§Unary relationship: Association is maintained within a single entity
§Recursive relationship: Relationship exists between occurrences of the same entity set
§Employee has to report to Head department (Employee) §Football team (players) is captained
by a captain (Player) §A course has a pre-requisite course (course)
§Binary relationship: Two entities are associated §Ternary relationship: Three entities are
associated
connective process
§In relational DB, M:N is not allowed.
§Split the M:N relationship to a 1:M relationship.
§Compose new entity that consists primary key attributes of each parent entity
23 Figure 4.23 - Converting the M:N Relationship into Two 1:M Relationships
24 25
23
Relationships
25 Developing an ER Diagram
entities
§Revise and review ERD