COP6731 Data Modeling Using ER

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

1/51

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 7:42 PM on 10/4/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

52 Terms

1
New cards

Phases of database design (in order)

Requirements collection and analysis > conceptual schema > logical design > physical design

2
New cards

Requirements collection and analysis

Gather the functional requirements and data requirements

3
New cards

Define conceptual schema

A concise description of the data requirements (e.g., entity types, relationships, constraints)

4
New cards

Logical design

The conceptual schema is transformed from the high-level data model into the actual implementation data model (e.g., SQL)

5
New cards

Physical design

Choosing storage and access methods

6
New cards

Purpose of conceptual data modeling

To help understand the meaning (semantics) of the data and to facilitate communication about information requirements

7
New cards

Entity

A real-world object (e.g., employee)

8
New cards

Attribute

A property of an entity (e.g., employee-id, name, age)

9
New cards

Relationship

An association among two or more entities

10
New cards

Entity-relationship (ER) model

A high-level conceptual data model consisting of a collection of entities and the relationships among them

11
New cards

ERD step 1

Identify the entities (e.g., nouns in the domain analysis)

12
New cards

ERD step 2

Find the semantic relationships between entities (e.g., verbs that connect the nouns)

13
New cards

ERD step 3

Draw the entities and relationships

14
New cards

ERD step 4

Determine the cardinality of the relationships

15
New cards

ERD step 5

Identify the attributes

16
New cards

ERD step 6

Identify the attribute(s) that are unique in the entity (the key)

17
New cards

Key in an ERD

Key = candidate key

18
New cards

Entities with physical existence

Person, car, house, employee

19
New cards

Entities with conceptual existence

Company, job, university course

20
New cards

Key attribute

Has a key (uniqueness) constraint; a key can be a set of attributes, and such a composite key must be minimal

21
New cards

Types of attributes

Simple or composite, single-valued or multi-valued, stored or derived

22
New cards

Simple (single) attribute

Composed of a single component with an independent existence

23
New cards

Composite attribute

Composed of multiple components, each with an independent existence

24
New cards

Single-valued attribute

Holds a single value for each occurrence of an entity type

25
New cards

Multi-valued attribute

Holds multiple values for each occurrence of an entity type

26
New cards

Multi-valued attribute example

A person's college degrees (B.S. Computer Science, M.S. Civil Engineering, Ph.D. Computer Science, etc.)

27
New cards

Derived attribute

A value derivable from another attribute or set of attributes (not necessarily in the same entity type); it doesn't exist in the physical database

28
New cards

Derived attribute example 1

birth_date (stored) > age (derived)

29
New cards

Stored attribute

An attribute whose value is actually kept in the database, from which derived attributes are computed

30
New cards

Relationship (in an ER diagram)

An attribute of one entity type refers to another entity type (e.g., department's manager refers to employee)

31
New cards

Relationship set R

A subset of the Cartesian product of the entity sets E1, E2, …, En that participate in R

32
New cards

Degree of a relationship type

The number of participating entity types (unary, binary, ternary, N-ary)

33
New cards

Binary relationship

A relationship between two entity types (e.g., EMPLOYEE WORK_FOR DEPARTMENT)

34
New cards

Ternary relationship

A relationship among three entity types (e.g., supply involves supplier, project, and part)

35
New cards

Unary (recursive) relationship

A relationship between an entity type and itself (e.g., EMPLOYEE SUPERVISION)

36
New cards

Cardinality ratio

The maximum number of relationship instances that an entity can participate in

37
New cards

Cardinality ratio types

1:1, 1:N, N:1, M:N

38
New cards

1:1 relationship example

EMPLOYEE MANAGES DEPARTMENT (one employee manages one department)

39
New cards

1:N relationship example

DEPARTMENT to EMPLOYEE via WORK_FOR (one department has many employees; each employee works for one)

40
New cards

M:N relationship example

EMPLOYEE WORK_ON PROJECT (employees work on many projects; projects have many employees)

41
New cards

Total participation (mandatory)

Participation of entity set E in relationship set R is total if every entity in E participates in at least one relationship in R

42
New cards

Total participation is also called

An existence dependency constraint

43
New cards

Total participation example 1

Every employee must work for a department

44
New cards

Weak entity

An entity type that cannot be uniquely identified by its own attributes alone; depends on another (strong) entity for identification and existence

45
New cards

Weak entity key

Has no primary key of its own, only a partial key (discriminator)

46
New cards

Partial key (discriminator)

The attribute(s) of a weak entity that, combined with the owner's primary key, identify its instances

47
New cards

How is a weak entity identified?

By its partial key plus the primary key of its owning strong entity

48
New cards

Identifying relationship

The relationship between a weak entity type and its parent (owner)

49
New cards

Participation of a weak entity

Always total (existence dependency); every weak entity must participate in the identifying relationship

50
New cards

Weak entity example

DEPENDENT (partial key: Name) related to EMPLOYEE (key: Ssn) through DEPENDS_OF (N:1)

51
New cards

Strong entity

An entity type that has its own key attribute(s) and does not depend on another entity for identification

52
New cards

Mandatory vs. optional relationship

Mandatory = total participation; optional = partial participation (not every entity must participate)