Chapter 5 Flashcards

1
Q

What is Specialization Hierarchy?

A

Depicts arrangement of higher-level entity supertypes (parent) and lower-level entity subtypes (child).
Relationships are described in terms of “is-a(n)” relationships

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

What is Supertype and Subtypes?

A

Supertype = Parent entity
Subtypes = Child entity

Supertype for example employee
Subtypes for example Pilot, Mechanic, Accountant

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

What is Data Normalization?

A

An improvement you do. For example minimize redundancy. DB Normalization can have three forms: 1NF, 2NF, 3NF.

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

What is the purpose of conversion to 1NF? And what are the steps?

A

Enable reducing data redundancies.

Steps:
-Eliminate the repeating groups.
-Identify the primary key.
-Identify all dependencies.

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

What is Partial Dependency?

A

A,B –> C,D
For example, when the teacher is putting the marks, he/she has to match the ID-number or student name and then enter the mark. She/he does not need both student number and student name.

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

What is Transitive Dependency?

A

A depends on B, B depends on C. Then A is transitive dependency of C.

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

What are the steps when conversion to 2NF? And what is 2NF connected to?

A

-Make new tables to eliminate partial dependencies.

-Reassign corresponding dependent attributes.

2NF is connected to the Partial Dependency.

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

What is an Entity supertype?

A

Generic entity type related to one or more entity subtypes (contains common characters)

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

What is an 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
10
Q

What does Inheritance enable?

A

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

All entity subtypes inherit their primary key attribute from their supertype

At the implementation level, supertype and its subtype(s) maintain a 1:1relationship

Entity subtypes inherit all relationships in which supertype entity participates

Lower-level subtypes inherit all attributes from its upper-level supertype

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

What are Disjoint subtypes (non overlapping subtypes)?

A

Contain a unique subset of the supertype entity set, example “Employee can’t be Pilot and mechanic at the same time”

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

What are Overlapping subtypes?

A

Contain non unique subsets of the supertype entity set

Professor: Y
Administrator: N
The employee is a member of the professor Subtype.

Professor: N
Administrator: Y
The employee is member of the Administrator subtype.

Professor: Y
Administrator: Y
The employee is both a member of the professor and administrator subtype.

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

What does Completeness Constraint specify?

A

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

Types:
Partial completeness: Not every supertype occurrence is a member of a subtype

Total completeness: Every supertype occurrence must be a member of any subtype

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