Chapter 4 Flashcards

(40 cards)

1
Q

ERM forms…

A

The basis of an entity relationship diagram (ERD)
-Conceptual database as viewed by the end user.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Database main components

A

-Entities
-Attributes
-Relationships

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Entities

A

Object of interest to the end user
-Refers to the entity set and not to a single entity occurrence.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

ERM corresponds to…

A

A table in the relational environment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Entity in Chen, Crow’s foot and UML

A

An entity is represented by a rectangle that contains the entity’s name.
-usually written in all capital letters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Characteristics of Entities

A

-Required attribute
-Optional attribute
-Domain
-Identifier (PK)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Required attribute

A

An entity must have a value and cannot be empty.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Optional attribute

A

Does not require a value and can be left empty.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Domain

A

A set of possible values for a given attribute.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Identifier (PK)

A

One or more attributes that uniquely identify each entity instance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

More characteristics of entities

A

-Composite identifier
-Composite attribute
-Simple attribute
-Single-valued attribute
-Multivalued attributes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Composite identifier

A

Primary key composed of more than one attribute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Composite attribute

A

Attribute that can be subdivided to yield additional attributes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Simple attribute

A

Attribute that cannot be subdivided.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Single-valued attribute

A

Attribute that has a single value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Multivalued attributes

A

Attributes that have many values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Requirements of multivalued attributes

A

-Create several new attributes, one for each component of the original multivalued attribute
-Develop a new entity composed of the original multivalued attribute’s components.

18
Q

Derived attribute

A

Attribute whose value is calculated from other attributes (derived using an algorithm).

19
Q

Advantage of storing a derived attribute

A

-Saves CPU processing cycles
-Saves data access time
-Data value is readily available
-Can be used to keep track of historical data

20
Q

Disadvantages of storing derived attributes

A

-Requires constant maintenance to ensure derived value is current, especially if any values used in the calculation change.

21
Q

Advantage of not storing derived attributes

A

-Saves storage space
-Computation always yields current value

22
Q

Disadvantage of not storing derived attribute

A

-Uses CPU processing cycles
-Increases data access time
-Adds coding complexity to queries.

23
Q

Participants

A

Entities that participate in a relationship

24
Q

Connectivity

A

Describes relationship classification (1:1, 1:M, etc)

25
Cardinality
Expresses the minimum and maximum number of entity occurrences associated with one occurrence of related entity.
26
Existence dependence
An entity exists in the database only when it is associated with another related entity occurrence.
27
Existence independence
-Entity exists apart from all of its related entities -Referred to as a strong entity or a regular entity.
28
Weak (non-identifying) relationship
Primary key of the related entity does not contain a primary key component of the parent entity
29
Strong (identifying) relationships
Primary key of the related entity contains a primary key component of the parent entity.
30
Conditions of a weak entity
-Existence-dependent -Has a primary key that is partially or totally derived from parent entity in the relationship
31
Optional participation
One entity occurrence does not require a corresponding entity occurrence in a particular relationship
32
Mandatory participation
One entity occurrence requires a corresponding entity occurrence in a particular relationship.
33
Unary relationship
Association is maintained within a single entity
34
Recursive relationships
Relationship exists within a single entity type
35
Binary relationship
Two entities are associated
36
Ternary relationship
three (or more) entities are associated
37
Relationship can exist...
Between occurrences of the same entity set -Naturally, such a condition is found within a unary relationship
38
Pitfall of unary relationships
One common pitfall when working with unary relationships is to confuse participation with referential integrity -Similar because they are both implemented through constraints on the same set of attributes.
39
Composite (Associative) Entities
Used to represent an M:N relationship between two or more entities
40
Activities involved in building an ERD
- Create a detailed narrative of the organisation's description of operations. -Identify business rules based on the descriptions -Identify main entities and relationships from the business rules -Develop the initial ERD -Identify the attributes and primary keys that adequately describe entities -Revise and review ERD