Database Design and Entity-Relationship Model

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

1/33

flashcard set

Earn XP

Description and Tags

Flashcards covering database design phases and the Entity-Relationship Model.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

34 Terms

1
New cards

What are the six phases of database design?

The six phases are: Characterize user’s data needs, Choose a data modeling technique, Develop a conceptual schema, Review the schema, Map conceptual schema to a logical schema, and Map logical schema to a physical schema.

2
New cards

How do you characterize user’s data needs in database design?

Interact with users and domain experts to understand data requirements.

3
New cards

What are some data modeling techniques?

Relational Model, Entity-Relationship (E-R) Model, Object-based Data Model, Semi-structured Data Model.

4
New cards

What is typically used to develop a conceptual schema?

E-R model.

5
New cards

What is involved in mapping a conceptual schema to a logical schema?

Convert the E-R diagram into tables and constraints.

6
New cards

What is involved in mapping a logical schema to a physical schema?

Files, indexes, and data dictionaries.

7
New cards

What is the purpose of the Entity-Relationship (E-R) Model?

Facilitates database design and maps real-world enterprises onto a conceptual schema.

8
New cards

What are the three basic concepts of an E-R Model?

Entity & Entity sets, Relationship & Relationship sets, and Attributes.

9
New cards

What is an entity?

An object that exists and is distinguishable from other objects.

10
New cards

What is an entity set?

A set of entities of the same type that share the same properties.

11
New cards

What is a relationship?

An association among several entities.

12
New cards

What is a relationship set?

A mathematical relation among n entities; a subset of the Cartesian product of entity sets.

13
New cards

What is a binary relationship set?

Involves two entity sets.

14
New cards

What are attributes?

Properties possessed by all members of an entity set.

15
New cards

What is a domain in the context of attributes?

Set of permitted values for each attribute.

16
New cards

What is a simple/atomic attribute?

Cannot be divided into other attributes.

17
New cards

What is a composite attribute?

Can be divided into other attributes.

18
New cards

What is a single-valued attribute?

Has a single value for a particular entity.

19
New cards

What is a multi-valued attribute?

Has a set of values for a specific entity.

20
New cards

What is a derived attribute?

Can be computed from other attributes.

21
New cards

What are mapping cardinalities?

Number of entities to which another entity can be associated via a relationship set.

22
New cards

What are the four types of mapping cardinality for a binary relationship?

One-to-one, One-to-many, Many-to-one, Many-to-many.

23
New cards

What is a one-to-one mapping cardinality?

An entity in A is associated with at most one entity in B and vice versa.

24
New cards

What is a one-to-many mapping cardinality?

An entity in A is associated with any number of entities in B, but an entity in B is associated with at most one entity in A.

25
New cards

What is a many-to-one mapping cardinality?

An entity in A is associated with at most one entity in B, but an entity in B can be associated with any number of entities in A.

26
New cards

What is a many-to-many mapping cardinality?

An entity in A is associated with any number of entities in B and vice versa.

27
New cards

Keys of an Entity Set

Similar concept from Relational Database model

28
New cards

Relationship Set

Mathematical relation among n  2 entities

29
New cards

E-R Model

Facilitates DB design

30
New cards

E-R Diagram

Expresses logical structure of a DB graphically

31
New cards

Conversion of Relationship Sets (R)

Two steps: Step 1 and Step 2

32
New cards

Many-to-one or one-to-many

Primary key of entity set on the “many” side

33
New cards

Many -to-many

Union of primary-key from each entity set

34
New cards

One-to-one

Primary key of either entity set