Chapter 5 Flashcards

Advanced Data Modeling

1
Q

Entity supertype

A

Generic entity type that contains the common characteristics of entity subtypes

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

Entity subtype

A
  • a subset of an entity supertype

- Contains unique characteristics of each entity

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

Disjoint subtypes

A

these are unique and nonoverlapping subtype entity set

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

Overlapping subtypes

A
  • contain nonunique subsets of the supertype entity set

- a condition in which each entity instance(row) of the supertype can appear in more than one subtype

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

Partial completeness

A

not every supertype occurrence is a member of a subtype

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

Total completeness

A

every supertype occurrence must be a member of at least one subtypes

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

entity cluster (Virtual entity type)

A
  • used to represent multiple entities and relationships in ERD
  • Formed by combining multiple interrelated entities into a single, abstract entity object
  • General rule: avoid the display of attributes to eliminate complications that result when the inheritance rules change
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Primary key

A
  • single attribute or a combination of attributes
  • Uniquely identifies each entity instance
  • Guarantees entity integrity
  • Works with foreign keys to implement relationships
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Natural key or natural identifier

A
  • real-world identifier used to uniquely identify real-world objects
  • Familiar to end users and forms part of their day-to-day business vocabulary
  • Used as the primary key of the entity being modeled
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Desirable primary key characteristics

A
  • Non intelligent
  • No change over time
  • Preferably single-attribute
  • Preferably numeric
  • Security-compliant
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Identifiers of composite entities

A

Each primary key combination is allowed once in M:N relationship

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

Identifiers of weak entities

A
  • Strong identifying relationship with the parent entity
  • Represents a real-world object that is existence-dependent on another real-world object
  • Represented in the data model as two separate entities in a strong identifying relationship
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

When to use surrogate primary keys

A
  • Useful when there is no natural key

- Helpful if selected candidate key has embedded semantic contents or is too long

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

Implementing 1:1 Relationships (1 of 3)

Place primary key

A

Place primary key of the parent entity on the dependent entity as foreign key

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

Implementing 1:1 Relationships (1 of 3)

Options for selecting and placing the foreign key

A
  • Place a foreign key in both entities

- Place a foreign key in one of the entities

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

Time-variant data

A

data whose values change over time and for which a history of the data changes must be retained

17
Q

Time-variant data requires

A

creating a new entity in a 1:M relationship with the original entity

18
Q

Design trap

A
  • Occurs when a relationship is improperly or incompletely identified
  • Data represented in a way not consistent with the real world
19
Q

Fan trap

A
  • Occurs when one entity is in two 1:M relationships to other entities
  • Produces an association among other entities not expressed in the model
20
Q

Inheritance, in the EERD

A

the property that enables an entity subtype to inherit the attributes and relationships of the supertype

21
Q

subtype descriminator

A

the attribute in the supertype that determines to which entity subtype each supertype occurrence is related

22
Q

specialization

A

the grouping of unique attributes into a subtpye entity

23
Q

generalization

A

the grouping of common attributes into a supertype entity

24
Q

surrogate key

A

system-assigned primary key, generally numeric and auto-incremented