Entity Relationship Modeling

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/21

flashcard set

Earn XP

Description and Tags

2Y2 | Midterms

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

22 Terms

1
New cards

Entity Relationship Modeling Fundamentals

2
New cards

• The Entity Relationship Model (ERM)

is a data model that describes relationships among entities at the conceptual level with the help of ER diagrams.

3
New cards

• The Entity Relationship Diagram (ERD)

is a diagram that depicts an entity relationship model’s entities, attributes, and relations.

4
New cards

• entity

is represented in the ERD by a rectangle, also known as an entity box. The name of the entity, a noun, is written in the center of the rectangle.

5
New cards

• The entity name is generally written in capital letters and in singular form: SINGER rather than SINGERS, and SONG rather SONGS.

6
New cards

• entity instance or entity occurrence

Each row in the relational table is known as an ___ in the ER model.

7
New cards

• entity set

A collection of similar entities is known as an .

8
New cards

• Relationships

describe associations among data.

9
New cards

• connectivity

The type of relationship between entities is called __ and is represented in an ERD by a line.

10
New cards

• active or passive verb

The name of the relationship is usually an ___.

11
New cards

For example, a SINGER sings SONGs.

12
New cards

ER Model Notations

13
New cards

• The different types of relationships can be illustrated using the following notations:

14
New cards

o Chen notation

Relationships are represented by a diamond connected to the related entities through a relationship line. The relationship name is written inside the diamond.

15
New cards

Chen notation example

knowt flashcard image
16
New cards

o Crow's Foot notation: Entities are connected by lines, and symbols at either end describe the cardinality of the relationship between the entities.

17
New cards

Crow's Foot example

knowt flashcard image
18
New cards

Attributes

Each entity consists of a set of attributes that describes particular characteristics of the entity.

19
New cards

• In the original Chen notation, attributes are represented by ovals and are connected to the entity rectangle with a line. Each oval contains the name of the attribute it represents. The entity identifier is mapped as the table's primary key and is underlined.

20
New cards

Attributes example

knowt flashcard image
21
New cards

• In the Crow’s Foot notation, the attributes are written in the attribute box below the entity rectangle. Required attributes are in boldface. PK and FK are used to mark the primary and foreign keys.

22
New cards

Example

knowt flashcard image