Rob & Coronell - Chapter 3.6 Flashcards

1
Q

Which relationship can be found in a good relational database?

A

1: 1:M relationship
2. 1:1 Relationship

M:N -> not used in this type of database.

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

How is a 1:M relationship easily implemented?

A

By putting the primary key of the 1 side in the table of the many side as a foreign key.

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

What does a 1:1 relationship ensure?

A

That two entity sets are not placed in the same table when they should not be.

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

Why is a 1:1 relationship not common in a good relational database?

A

It might indicate that the entity components are not defined properly -> could indicate that the two entities actually belong in the same table.

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

What is a composite entity?

A

An entity (table) that is created to link the tables that were originally related in an M:N relationship.

  • > Should include the primary keys of the tables that are to be linked (as foreign keys).
  • Also known as: bridge entity, associative entity, linking table
How well did you know this?
1
Not at all
2
3
4
5
Perfectly