ER-Diagram Tutorial Flashcards

1
Q

What is participation, and what is it also known as?

A

Modality, multiplicity, and it indicates whether all or only some of the instances of the entity are involved in the relationship.

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

What is cardinality?

A

It indicates the number of instances of the entities in a given relationship

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

Where should the foreign key go in a 1-1 (M:O) relationship?

A

The foreign key should go in the mandatory entity.

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

Where should the foreign key go in a 1-1 relationship if they’re both mandatory or both optional

A

Does not matter where foreign key goes.

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

Where should the foreign key go in a many-to-one relationship?

A

Should go in the entity that has only ONE of the other entity (with the multiple crows feet touching it)

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

Where should the foreign key go in a many-to-many relationship?

A

A new (connector) ENTITY must be created (with lowercase name), and both foreign keys are put inside this new entity.

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

Describe how the crow’s feet diagram would work in a Many-to-Many relationship scenario.

A

The crow’s feet touching the original entities should be 1 (M), and the feet touching the connector entity should be Many but the optionality depends on relationship.

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

What are the steps to Designing an E-R Model/diagram?

A
  1. Collect & review all data
  2. Identity entities and attributes, draw them
  3. Identify KEYs and underline them
  4. Decide on relationships and draw them, including the attributes OF RELATIONSHIPS
  5. Decide on cardinality, participation
  6. Add foreign keys for each entity and add relationship attributes (if present).
  7. Resolve relationship attributes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Where should relationship attributes go in a 1:M relationship?

A

With the foreign key, or the entity that’s getting touched by multiple feet.

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

Where should relationship attributes go in a M:M relationship?

A

In the connector identity.

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