Relationships, Types, Cardinalities Flashcards

1
Q

What is an Entity Relationship Diagram (ERD)?

A

A visual representation of the relationships between entities in a database.

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

What is Cardinality in ERDs?

A

The number of instances of one entity that can (or must) be associated with each instance of another entity.

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

What are the three main types of Cardinality?

A

One-to-One (1:1), One-to-Many (1:M), Many-to-Many (M:N).

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

In a One-to-One relationship, how many instances of each entity are involved?

A

One instance of each entity.

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

In a One-to-Many relationship, how many instances of the first entity are associated with one instance of the second entity?

A

One instance.

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

In a Many-to-Many relationship, how many instances of each entity can be associated with each other?

A

Multiple instances.

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

What symbol is used to represent One-to-One relationships in an ERD?

A

A straight line connecting the two entities.

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

What symbol is used to represent One-to-Many relationships in an ERD?

A

A line with a crow’s foot at one end connecting the two entities.

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

What symbol is used to represent Many-to-Many relationships in an ERD?

A

Two lines with crow’s feet at both ends connecting the two entities.

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

What is meant by the term ‘mandatory’ in Cardinality?

A

Indicates that an entity instance must participate in the relationship.

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

What is meant by the term ‘optional’ in Cardinality?

A

Indicates that an entity instance may or may not participate in the relationship.

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

What does a double line between two entities in an ERD represent?

A

An identifying relationship where the child entity’s existence depends on the parent entity.

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

What is the difference between a weak entity and a strong entity in an ERD?

A

A weak entity cannot be uniquely identified by its attributes alone, while a strong entity can.

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

What is a recursive relationship in an ERD?

A

A relationship where an entity is related to itself.

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

What is the purpose of using Cardinality in an ERD?

A

To define the relationship between entities and specify how many instances can be associated with each other.

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

What does a ‘zero or more’ Cardinality indicate?

A

That an entity instance can have zero or more related instances in the relationship.

17
Q

What does a ‘one or more’ Cardinality indicate?

A

That an entity instance must have at least one related instance in the relationship.

18
Q

What is a ternary relationship in an ERD?

A

A relationship involving three entities.

19
Q

What is a partial participation constraint in Cardinality?

A

Indicates that an entity instance may or may not participate in the relationship.

20
Q

What is a total participation constraint in Cardinality?

A

Indicates that an entity instance must participate in the relationship.

21
Q

What does a ‘zero or one’ Cardinality indicate?

A

That an entity instance can have zero or one related instances in the relationship.

22
Q

What is the purpose of using Crow’s Foot notation in an ERD?

A

To visually represent Cardinality and the relationship between entities.

23
Q

What is an associative entity in an ERD?

A

An entity that bridges the relationship between two other entities.