Entity Relationship (E-R) Modeling

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/31

encourage image

There's no tags or description

Looks like no tags are added yet.

32 Terms

1
New cards

What does the entity relationship model represent?

Represents conceptual view.

2
New cards

What are the main components of the entity relationship model?

  • Entities

  • Attributes

  • Relationships


3
New cards

What are entities?

  • Corresponds to entire table, not row.

  • Represented by rectangle.


4
New cards

What is a relational database?

Designer focuses on logical representation rather than physical. Allows for more effective design strategies.

5
New cards

What are the advantages of using tables?

  • Structural and data independence.

  • Related records stored in independent tables.

  • Logical simplicity.


6
New cards

What are the elements of a relational database?

  • Entity

  • Attribute

  • Relationship


7
New cards

What are tables?

  • Holds related entities or entity set.

  • Also called relations.

  • Comprised of rows and columns.


8
New cards

What are common notations?

  • Chen’s

  • Crow’s Feet (used in class)

  • Modeling Language (UML)


9
New cards

What are attributes?

  • Characteristics of entities.

  • Domain is set of possible values.

  • Primary keys underlined.


10
New cards

What are the different types of attributes?

  • Simple

  • Composite

  • Single-valued

  • Multi-valued

  • Derived


11
New cards

What are the different types of keys?

  • Candidate key

  • Primary key

  • Foreign key


12
New cards

What are keys?

One or more attributes that determine other attributes such as: key attribute and composite key. It has full functional dependence.

13
New cards

What is entity integrity?

  • Uniqueness

  • No ‘null’ value in key.


14
New cards

What are the entity integrity rules?

  • Ensures all entities are unique.

  • Each entity has a unique key.


15
New cards

What rules apply to referential integrity?

  • Foreign key must have null value or match primary key values.

  • Makes it impossible to delete row whose primary key has mandatory matching foreign key values in another table.


16
New cards

What are ERD symbols?

A rectangle represents the entity type. Entities are named with a noun.

17
New cards

What does a verb represent?

The relationship between entities. Can be written above the line or if including relationship triangles, can be written in the triangle.

18
New cards

What is the “1” side of relationship?

  • A |, 1 (UML), or no change in diagram (assumed to be 1).

  • An O or 0 (UML) in diagram (optional).


19
New cards

What is the “Many” relationships?

Three prongs “Crow’s foot” or an * (UML).

20
New cards

What do entitiy relationships indicate?

Number of associated entities participating in the relationship.

21
New cards

What is unary?

  • Single entity

  • Recursive

  • Exists between occurrences of same entity set.


22
New cards

What is binary?

Two entities associated.

23
New cards

What is ternary?

Three or more entities associated.

24
New cards

What is participation?

Determines whether an entity occurrence is mandatory or optional. Can be a zero (0) or one (1).

25
New cards

What is optional participation?

Entity occurrence does not require a corresponding occurrence in related entity.

26
New cards

What is mandatory participation?

  • Entity occurrence requires corresponding occurrence in related entity.

  • If no optionality symbol is shown on ERD, it is assumed mandatory.


27
New cards

What is cardinality?

The degree or maximum if possible entity occurrences that may relate to a single occurrence of an associated entity type. Can be one (1) or many (crow’s foot).

28
New cards

Relationships are often described by these maximum values:

  • 1:1 (one to one relationship)

  • 1:M (one to many relationship)

  • M:N (many to many relationship)


29
New cards

What are associative entities?

  • Used to ‘bridge’ between M:N relationships.

  • Composite entities composed of primary keys of each entity needing connection.


30
New cards

What does a weak entity represent?

Represents a strong ownership between the “whole” and the “part.” A “part” belongs to only one “whole.”

31
New cards

What is a weak entity?

  • Existence-dependent on another entity.

  • Has primary key that is partially or totally derived from parent entity.


32
New cards

What are some of the challenges and conflicting goals of database design?

  • Database must be designed to conform to design standards.

  • High-speed processing may require design compromises.

  • Quest for timely information may be the focus of database design.

  • Other concerns include: Security, performance, shared access, and integrity.