Section 5 Flashcards

1
Q

A nontransferable relationship is represented with the ……….. on the relationship

A

diamond

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

Nontransferable relationships are important to note because they usually reflect a ………… ………. and will have implications when the ERD is implemented as a ………………..

A

business rule / database

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

The diamond is typically drawn on the “………….” (……………….) side of the relationship.

A

many / crows-foot

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

The various types of 1:M relationships are ……….. ………….. in an ER Model

A

most common

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

“Many” can mean ………….. or ………….., depending on the optionality.

A

one-or-more / zero-or-more

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

Mandatory at both ends: This type of relationship typically models entities that cannot exist without each other. This usually represents an ideal situation—we cannot have ORDER ITEMs without ORDERs.

A

R 2

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

Mandatory on the one side, optional on the many side: This is rarely used. You will see it only when the relationship expresses that an entity instance exists only when it is a ………… …………, and where the elements of the set can exist ……………….

A

nonempty set / independently.

A MUSICIAN may be part of one BAND. A BAND is of no interest if it is empty. How can you have a BAND without MUSICIANs?

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

The various types of M:M relationships are common, particularly in a ……….. ……….. of an ER model. In later stages of the modeling process, all M:M relationships will be …………, and …………

A

first version

resolved / disappear

In most cases, M:M relationships indicate that an entity is missing from the model.

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

Usually you will find just a few of the various types of ……….. relationships in every ER model

A

1:1

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

Mandatory at one end of the 1:1 relationship commonly occurs when roles are ……………

A

modeled

Alternatively, TEACHER and STUDENT could have been modeled as subtypes of PERSON, unless a PERSON can be both a TEACHER and a STUDENT at the same time.

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

1:1 relationships (of all three variations) also occur when some of the entities represent various stages in a …………….

A

process

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

Mandatory 1:1 A 1:1 relationship, mandatory at both ends, tightly connects two entities: when you create an instance of one entity, there must be exactly one dedicated instance for the other simultaneously. This leads to the question why you want to make a distinction between the two entities anyway. The only acceptable answer is: ………………………………..

A

only if there is a business need.

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

A redundant relationship can be derived from …………. ………… in the model

A

another relationship

In this example, you can derive the relationship from PERSON to COUNTRY from the other two relationships (COUNTRY to TOWN, TOWN to PERSON), so you should remove the direct relationship from COUNTRY to PERSON

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

However, be careful of concluding that a relationship is redundant based on the structure alone. Read the …………….. to check

A

relationships

  • The ERD shown here does not reflect a redundant relationship*
  • The relationship on the right tells us the country of a PERSONs birth, and the relationship on the left tells us the TOWN and COUNTRY that a person currently lives in. It is possible that someone could be living in a different COUNTRY from where they were born.*
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the solution?

A

A third entity is needed to resolve the M:M relationship. This is called an “intersection” entity

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

What would be the UID of the intersection entity?

A
17
Q

CRUD analysis ties data modeling to …………. …………

A

business functions

18
Q

CRUD analysis checks that all the appropriate operations are possible. This is a good tool to check for …………. and proper ………… of the data model.

A

completeness / scope

19
Q

What does CRUD stands for?

A

create, retrieve, update, and delete (CRUD).

20
Q

If you have a ………. ………… that has no entity to CRUD against, then your data model may be incomplete

A

business rule

21
Q

Similarly, if you have entities in your ERD that are not touched by any CRUD function (no business rule creates, retrieves, updates, or deletes from it), then you may not need that entity in your model

A

R 2