Relationships Flashcards

1
Q

What is a one-to-one relationship?

A

A one-to-one relationship is where each record in one table is related to exactly one record in another table.

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

What is a one-to-many relationship?

A

A one-to-many relationship is where each record in one table is related to many records in another table.

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

What is a many-to-many relationship?

A

A many-to-many relationship is where each record in one table can be related to many records in another table, and vice versa.

For example, a student may be taught by multiple professors, and a professor may be teaching multiple students.

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

What is the cardinality of a relationship?

A

The cardinality of the relationship is the maximum values for the multiplicity ranges on either side of the relationship.

e.g. If a relationship is 1:4, the cardinality is 4, because we may have at maximum 4 on the largest side.

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

What is the participation of a relationship?

A

The minimum values for the multiplicity ranges on either side of the relationship.

e.g. If a relationship is 1:4, the participation is 4, because we need at least 1 to participate.

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

What is meant by the multiplicity constraints of a relationship?

A

How many or how little of that entity must exist for the relationship to be valid.

e.g. An entity with multiplicity constraints 0..1 implies that the entity may or may not exist, while one that is 1..4 implies that there must be between 1 and 4 of that entity.

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

What is a connection trap in a database?

A

A connection trap occurs when a pathway between two entities is either ambiguous or false existent.

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

What is the difference between a fan and chasm connection trap?

A

A fan trap occurs when a path between certain entity occurrences is ambiguous, while a chasm trap occurs when it does not exist at all.

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

How may we most efficiently begin to conceptually design a database?

A

We start by identifying the types of entity and relationships, to give a purely conceptual model to connect our entities.

Then, we may identify any attributes and the primary keys of that entity.

We may then check for multiplicity constraints and traps, then validate the model against user transactions, finally reviewing it with the end user.

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