Chapter 5 Flashcards

(31 cards)

1
Q

Extended entity relationship model (EERM)

A

-Result of adding more semantic constructs to the original entity relationship model
-Extended entity relationship diagram (EERDs) use the EERM

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

Entity supertype

A

-Generic entity type that is related to one or more entity subtypes.
-Contains common characteristics.

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

Entity subtype

A

-Contains unique characteristics of each entity subtype

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

Criteria for supertype and subtype usage

A

-There must be different, identifiable kinds of the entity in the user’s environment.
-The different kinds of instances should each have one or more attributes that are unique to that kind of instance

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

Specialisation Hierarchy

A

-Depicts parent and child entities

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

Specialisation hierarchy details

A

-Depicts arrangement of higher-level entity supertypes and lower-level entity subtypes
-Relationships are described in terms of “is-a” relationships
-Subtype exists within the context of a supertype
-Every subtype has one supertype to which it is directly related
-Supertype can have many subtypes.

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

A specialisation hierarchy provides means to…

A

-Support attribute inheritance
-Define a special supertype attribute known as the subtype discriminator
-Define disjoint or overlapping constraints and complete or partial constraints

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

Inheritance

A

Enables an entity subtype to inherit attributes and relationships of the supertype

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

Inheritance details

A

-All entity subtypes inherit their primary key attribute from their supertype
-At the implementation level, supertype and its subtypes maintain a 1:1 relationship
-Entity subtypes inherit all relationships in which supertype entity participates
-Lower-level subtypes inherit all attributes and relationships from its upper-level supertypes.

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

Subtype discriminator

A

Attribute in the supertype entity that determines to which entity subtype the supertype occurrence is related
-Default comparison condition is the equality comparison
-In some situations, the subtype discriminator is not necessarily based in an equality comparison

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

Disjoint subtypes

A

Contain a unique subset of the supertype entity set (known as nonoverlapping subtypes)

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

Overlapping subtypes

A

Contain nonunique subsets of the supertype entity set (implementation requires the use of one discriminator attribute for each type)

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

Completeness constraint

A

Specifies whether each supertype occurrence must also be a member of at least one subtype

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

Types of completeness constraints

A

-Partial completeness
-Total completeness

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
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
16
Q

Total completeness

A

Every supertype occurrence must be a member of at least one subtype

17
Q

Entity clustering

A

Virtual entity type used to represent multiple entities and relationships in ERD
-Formed by combining multiple interrelated entities into a single, abstract entity object

18
Q

Entity clustering general rule

A

Avoid the display of attributes to eliminate complications that result when the inheritance rules change

19
Q

Entity integrity: Primary keys

A

Single attribute or combination of attributes
-Uniquely identifies each entity instance
-Works with foreign keys to implement relationships

20
Q

Natural key or natural identifier

A

Real-world identifier used to uniquely identify real-world objects
-Stuff like invoice number or student number

21
Q

Desirable primary key characteristics

A

-Non intelligent
-No change over time
-Preferably single-attribute
-Preferable numeric
-Security-complaint

22
Q

Identifiers of composite entities

A

-Each primary key combination is allowed once in M:N relationships

23
Q

Identifiers of weak entities

A

Strong identifying relationship with the parent entity

24
Q

Identifiers of weak entities

A

-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

25
When to use surrogate primary keys
Primary key used to simplify the identification of entity instances are useful when: -There is no natural key -The selected candidate key has embedded semantic contents or is too long -Requires ensuring that the candidate key of entity in question performs properly
26
Foreign keys...
work with primary keys to properly implement relationships in relational model -Rule: place primary key of the parent entity on the dependent entity as foreign key
27
Options for selecting and placing the foreign key
-Place a foreign key in both entities -Place a foreign key in one of the entities
28
Time-variant data
data whose values change over time and for which a history of the data changes must be retained.
29
Design trap
Occurs when a relationship is improperly or incompletely identified -represented in a way not consistent with the real world.
30
Fan trap
Occurs when one entity is in two 1:M relationships to other entities -Produces an association among other entities not expressed in the model
31