Chapter 5 Flashcards

1
Q

What is an entity type?

A

A collection of entities (persons, places, events or thing) of interest represented by a rectangle in an entity relationship diagram.

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

What is an attribute?

A

A property of an entity or relationship. Each attribute has a data type that defines the kind of values and permissible operations on the attribute. Attributes are properties of entity types or relationships. An entity should have a primary key as well as other descriptive attributes.

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

What is a relationship?

A

A named association among entity types. A relationship represents a two way or bidirectional association among entities. Most relationships involve two distinct entity types. A relationship that involves two entities is a binary relationship. A solid relationship line indicates an identifying relationship. For weak entities, the underlined attribute is part of the primary key, but not the entire primary key. Thus, the primary key of the room is a combination of building ID and room no.

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

What is a Cardinality?

A

A constraint on the number of entities that participate in a relationship. In an ERD the minimum and maximum cardinalities are specified for both directions of a relationship.

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

What is the natural language correspondence for entity types and relationships?

A

Informally ERDs have a natural language correspondence. Entity types can correspond to nouns and relationships to verbs or prepositional phrases connecting nouns. In this sense one can read an ERD as a collection of sentences. For example, the ERD in figure 5.1 can be read as “course has offerings”, which means there is an implied direction. In the other direction one could write, “offerings are given for a course”. If practical it is a good idea to use active verbs rather than passive verbs for relationships. Therefore “has” is preferred as the relationship name one should use the natural language correspondence as a guide rather than as a strict rule.

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

What is the difference between an ERD and an instance diagram?

A

The main difference between an ERD and an instance diagram is that the later one gives us a more detail information when sometimes that information is not available or not shown in an ERD. It usually happens during a Many to many (M-N) relationships between two entities. In figure 5.5. the “Team Teaches” relationship allows multiple professors to jointly teach the same offering as shown in instance diagram of figure 5.6(instance diagram) which gives us a more detail review of which professors are teaching which offerings.

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

What cardinalities indicate functional, optional, and mandatory relationships?

A

A minimum cardinality of one or more indicates a mandatory relationship. A mandatory relationship makes the entity type existence dependent on the relationship. If there is a minimum cardinality of zero it means the relationships are going to be optional. The table below gives us a more detailed meaning of the cardinality classifications.

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

Existence dependency

A

An entity that can not exist unless another related entity exists, A mandatory relationship creates an existence dependency.

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

When is it important to convert an M-N relationship into 1-M relationships?

A
When an M-N relationship needs to be related to other entity types in relationships one must convert that into multiple 1-M relationships. 
For example: Assume that in edition to enrollment in a course offering, attendance in class session should be recorded. In this situation the 1-M style is preferred because it is necessary to link an enrollment with attendance records, because note that the M-N relationship between Student and Offering entity types would not have allowed another relationship with attendance.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a self-referencing relationship?

A

A relationship involving the same entity type. Self-referencing relationships represent associations among members of the same act. A self-referencing relationship involves connections among members of the same act. They are sometimes called reflexive relationships because they are like a reflection in a mirror.

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

What is an associative entity type?

A

A weak entity type that depends on two or more entity types for its primary key. An associative entity type with more than two identifying relationships is known as an M-way associative entity type.

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

When should an ERD contain weak entity types?

A

Weak entity type borrows all or part of its primary key from another entity type. Identifying relationships indicate the entity types that supply components of a borrowed primary key.

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

Difference between an existence-dependent and a weak entity type?

A

Existence Dependent entity cannot exist unless another related entity exists. A mandatory relationship creates an existence dependency.

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

What is inheritance in generalization hierarchies?

A

Inheritance supports sharing between a supertype and its subtypes.

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

Generalization Hierarchy:

A

a collection of entity types arranged in a hierarchical structure to show similarity in attributes. Each subtype or child entity type contains a subset of entities of its supertype or parent entity type.

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

What is an associative entity type?

A

A weak entity that depends on two or more entity types for its primary key. An associative entity type with more than two identifying relationships is known as M-way associative entity way. An M-N relationship can be replaced by an associative entity type and two identifying 1-M relationships.
Equivalence between an M-N relationship and 1-M relationships?