Relationships between database tables (relational database) Flashcards

1
Q

What is a One to One Relationship Type?

A

Visual representation in database design that shows the relationship between two entities, where each entity is uniquely paired with exactly one instance of the other entity.

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

What is an example of a One to One Relationship Type?

A

A person can have only one passport

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

What does a One to One Relationship Type look like?

A

A straight line with two small lines perpendicular to the straight line at the end of it

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

What is a One to Many Relationship Type?

A

Illustrates a scenario where one instance of an entity is associated with multiple instances of another entity, but each instance of the second entity is related to only one instance of the first.

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

What is an example of a One to Many Relationship Type?

A

One teacher many students

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

What does a One to Many Relationship Type look like?

A

A straight line with one small line perpendicular to the straight line at the end of it and two lines at a 45 degree angle coming out of the perpendicular line on each side of the longest line

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

What is a Many to Many Relationship Type?

A

Multiple instances of one entity are associated with multiple instances of another entity.

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

What is an example of a Many to Many Relationship Type?

A

A student can enroll into many courses and a course can have multiple students enrolled into it

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

What does a One to Many Relationship Type look like?

A

A straight line with two lines at a 45 degree angle coming out of the line at the end of it

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