Advanced Data Modeling Flashcards

1
Q

What is an entity supertype?

A

Generic entity type related to one or more entity subtypes which contains common characteristics between subtypes

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

What is an entity subtype?

A

Contain the unique characteristic distinct from other subtypes

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

What are the criterias to use supertypes and subtypes?

A
  • There must be different, identifiable types of the entity in the user’s environment
  • Different kinds or types of instances should 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
4
Q

Define attribute inheritance

A

The property by which subtype entities inherit values of all attributes and instance of all relationship of the supertype

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

When do we use supertype/subtype relationships?

A
  1. There are attributes that apply to some (but not all) instances of an entity type
  2. The instances of a subtype participate in a relationship unique to that subtype
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Define Specialization

A

Top-down process of identifying lower-level, more specific entity subtypes from a higher-level entity supertype

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

Define Generalization

A

Bottom-up process of identifying a higher-level, more generic entity supertype from lower-level entity subtypes

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

What is completenes constraint?

A

Specifies whether each entity 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
9
Q

What are the two completenes constraints and their descriptions?

A

Partial Completeness (symbolized by a single line) means that not every supertype occurrence is a member of a subtype.
Total Completeness (symbolized by a double line) means that every supertype occurrence must be a member of at least one subtype

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

Define disjoint subtype

A

Each entity instance of the supertype can appear in only one of the subtypes

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

Define overlapping subtypes

A

Each entity instance of the supertype may appear in more than one subtype

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

Define subtype discriminator

A

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

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

Define Specialization Hierarchy

A

Depicts the arrangement of higher-level entity supertypes and lower-level entity subtypes

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

What is a natural key?

A

Real-world identifier used to uniquely identify real-world objects

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

What is surrogate key?

A

Has no meaning, exists only to distinguish one entity from another

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

What are the desirable PK characteristics?

A
  1. Unique Values
  2. Non-intelligent
  3. No change over time
  4. Preferably single-attribute
  5. Preferably numeric
  6. Security-compliant
17
Q

When to use composite keys?

A
  • As identifiers of composite entities
  • As identifiers of weak entities
18
Q

When to use surrogate keys?

A

When there is:
* no natural key
* selected candidate key has embedded semantic contents
* selected candidate key is too long or cumbersome

19
Q

What are the two options when implementing 1:1 relationships?

A
  • place a FK in both entities (not recommended)
  • place a FK in one of the entities
20
Q

What is time-variant data?

A

Values change over time

Must keep a history of data changes

21
Q

Define fan trap

A

When one entity is in two 1:M relationships to other entities

22
Q

When does redundant relationship occur?

A

Occurs when there are multiple relationship paths between related entities