CS401A's Midterms: Info Management Module 04 Flashcards
is a data model that describes relationships among entities at a conceptual level with the help of ER diagrams.
- The Entity Relationship Model (ERM)
is a diagram that depicts an entity relationship model’s entities, attributes, and relations.
- The Entity Relationship Diagram (ERD)
- An entity is represented in the ERD by a
rectangle, also known as an entity box.
- The entity name is generally written in
capital letters and in singular form:
SINGER rather than SINGERS, and SONG rather SONGS.
- Each row in the relational table is known as an
entity instance or entity occurence in the ER model.
- A collection of similar entities is known as an
entity set.
describe associations among data.
- Relationship
- The type of relationship between entities and is represented in an ERD by a line.
is called connectivity
- The name of the relationship is usually an
active or passive verb.
For example, a SINGER sings SONGs.
Relationships are represented by a diamond connected to the related entities through a relationship line.
The relationship name is written inside the diamond.
- Chen notation:
Entities are connected by lines, and symbols at either end describe the cardinality of the relationship between entities.
- Crow’s Foot notation:
[ PAINTER ] — 1 — < paints > — M — [ PAINTING ]
A painter can paint many paintings.
Chen notation:
1 paints M
one to Many
illustrated using
[ MANAGER ] — 1 — < manages > — 1 — [ DEPARTMENT ]
A manager can manage only one department.
Chen notation:
1 manages 1
one to one
illustrated using && describe the cardinality of the relationship
[ PAINTER ] ||— paints —|< [ PAINTING ]
Crow’s Foot notation:
Exactly one — One or many
illustrated using && describe the cardinality of the relationship
[ MANAGER ] ||— manages —|| [ DEPARTMENT ]
Crow’s Foot notation:
- Each entity consists a set of
that describes particular characteristics of the entity.
attributes
is mapped as the table’s primary key and is underlined.
The entity identifier
- In the original Chen notation, attributes are represented by
ellipse
ovals
and are connected to the entity rectangle with a line
* In the Crow’s Foot notation,
Required attributes are in
boldface.
* In the Crow’s Foot notation,
are used to mark the primary and foreign keys.
PK and FK