Chapter 5 Flashcards

(24 cards)

1
Q

What is the Extended Entity Relationship Model (EERM)?

A

An extension of the ER model that adds semantic constructs to capture more complex data structures and application requirements.

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

What is an EERD?

A

An Extended Entity Relationship Diagram

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

What is a supertype in EERM?

A

A generic entity type that has common attributes shared by one or more subtypes.

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

What is a subtype in EERM?

A

A specialized entity type that inherits attributes from its supertype and has additional unique attributes.

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

What is a specialization hierarchy?

A

A hierarchy organizing supertypes and subtypes

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

What is inheritance in EERM?

A

The ability of subtypes to inherit attributes and relationships from their supertype.

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

What is a subtype discriminator?

A

An attribute in the supertype that determines the appropriate subtype for each instance.

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

What does a disjoint constraint mean?

A

An entity instance can only be a member of one subtype. Represented by ‘d’ in a circle in EERDs.

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

What does an overlapping constraint mean?

A

An entity instance can belong to multiple subtypes. Represented by ‘o’ in a circle in EERDs.

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

What are completeness constraints?

A

They indicate whether every instance of a supertype must be a member of a subtype (total) or not (partial).

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

What is an entity cluster in an ERD?

A

A virtual entity used to group multiple related entities and relationships to simplify complex ERDs.

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

Are entity clusters implemented in the final database design?

A

No

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

What should be avoided when using entity clusters?

A

Displaying attributes

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

What is a primary key?

A

An attribute (or combination) that uniquely identifies each entity instance.

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

What are the characteristics of a good primary key?

A

Unique

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

What is a natural key?

A

A real-world identifier used as a primary key

17
Q

When are composite primary keys useful?

A

For composite entities (bridge tables) or weak entities in identifying relationships.

18
Q

What is a surrogate primary key?

A

A system-generated numeric key used when no suitable natural key exists.

19
Q

How should multivalued attributes be handled in a data model?

A

By creating a new related entity to avoid structural problems and nulls.

20
Q

How is a 1:1 recursive relationship handled?

A

By placing the foreign key in the entity where it causes the fewest nulls or represents the optional side.

21
Q

How is a 1:M recursive relationship handled?

A

By placing the PK of the “one” side as a FK in the “many” side (same entity).

22
Q

How is a M:N recursive relationship handled?

A

With a bridge table containing two foreign keys referencing the same entity.

23
Q

What is time-variant data

A

and how is it handled?

24
Q

Why might denormalization be used in database design?

A

To improve performance at the cost of increased redundancy and risk of anomalies.