Chapter 6 Flashcards

1
Q

What does it mean to say that constructing an ERD is an iterative process?

A

It means that ERD models could be refined as many times as needed

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

Why decompose a compound attribute into smaller attributes?

A

Because it makes the search for embedded data easier

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

When is it appropriate to expand an attribute?

A

When additional details about an attribute are needed

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

Why transform an entity type into two entity types and a relationship?

A

Add a finer level of detail about an entity, usually a two-level structure

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

Why transform a weak entity type to a stronger entity type?

A

Remove combined foreign keys after conversion to tables

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

Why transform an entity type into a generalization hierarchy?

A

When there are multiple attributes that do not apply to all entities and when there is a classification of entities

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

Why add a history to an attribute or relationship?

A

For detailed legal requirements and strategic reporting

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

What changes to an ERD are necessary when expanding an attribute?

A

The changes require the replacement of an attribute with an entity type and a 1-M relationship.

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

What changes when splitting a compound attribute?

A

An attribute is replaced with a collection of attributes

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

What changes when expanding an entity type?

A

An entity type is split into two entity types and a relationship

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

What changes when transforming a weak entity type to a strong entity type?

A

A weak entity type changes into a regular entity type and converts associated identifying relationship into regular (non-identifying) relationships

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

What changes when adding unlimited history to an attribute or a relationship? what changes when replacing an entity type with a generalization hierarchy?

A

For attribute history, an attribute is replaced with a weak entity type and an identifying 1-M relationship. For 1-M relationship, the relationship will be changed to an associative entity type along with identifying relationships
Starting from a supertype; add subtypes, a generalization hierarchy, and redistribute attributes to subtypes. Starting from subtypes: add a supertype, a generalization hierarchy and redistribute common attributes and relationships to the supertype.

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

What is overuse of a generalization hierarchy and how is it resolved?

A

Generalization hierarchies are uncommon but a typical novice uses them inappropriately. It is resolved by ensuring that subtypes have specialized attributes and relationships. Generalization indicates the essence of an entity whereas attributes indicate the functions performed by an entity or state of an entity.

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

How is an M-N relationship converted to a table design?

A

Each M-N relationship becomes a separate table. The primary key of the table is a combined key consisting of the primary keys of the entity types participating in the M-N relationship.

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

What about a 1-M relationship?

A

Each 1-M relationship becomes a foreign key in the table corresponding to the child entity type (the entity type near the Crow’s Foot symbol). If the minimum cardinality on the parent side of the relationship is one, the foreign key cannot accept null values.

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

Weak entity type converted to a table design?

A

Each entity type (except a subtype) becomes a table. The attributes os the entity type becomes columns in the table

17
Q

Generalization hierarchy converted to a table design?

A

Each entity type of a generalizations hierarchy becomes a table. The columns of a table are the attributes of the corresponding entity typer plus the primary key of the parent entity type. For each table representing a subtype, define a foreign key constraint that references the table corresponding to the parent entity type.

18
Q

A 1-1 relationship to a table design?

A

Each 1-1 relationship is converted into two foreign keys. If the relationship is optional with respect to one of the entity types, the corresponding foreign key may be dropped to eliminate null values.

19
Q

Criteria for choosing a primary key?

A

The primary key should be stable and single purpose. Stable means it should not change after it has been assigned to an entity. Single purpose means that the primary key should have no purpose other than entity identification.

20
Q

What to do when a proposed primary key does not meet criteria?

A

If the proposed primary key does not met the requirement then you need to reject it as the primary key

21
Q

What changes to an ERD are necessary when replacing a collection of entity types with a generalization hierarchy?

A

The transformation involves the addition of a supertype and a generalization hierarchy. Same as a single entity

22
Q

How is a hub entity type used to simplify an ERD?

A

An entity type hub has direct relationships with other entity types. Therefore other relationships in an ERD can be eliminated if an indirect relationship exists through a hub entity type.

23
Q

A tuple is synonymous with a field

A

False