Lecture 5 Flashcards

(13 cards)

1
Q

What are the three types of relationships within the relational model?

A

1:1, 1:M, M:N

These relationships define how entities interact within a relational database.

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

Which relationship is considered the norm in any relational database design?

A

1:M

The 1:M (one-to-many) relationship is the most common type of relationship in relational databases.

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

Which relationship should be rare in any relational database design?

A

1:1

A 1:1 (one-to-one) relationship indicates a very specific connection between two entities.

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

How can M:N relationships be implemented in a relational model?

A

By changing them into two 1:M relationships

This conversion helps to avoid the complications associated with M:N relationships.

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

What does a 1:M relationship signify?

A

One entity can be related to multiple instances of another entity

It is a foundational concept in relational database design.

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

What could a 1:1 relationship imply about entity components?

A

Entity components were not defined properly

This might suggest that the two entities should actually be in the same table.

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

What is a composite entity or bridge entity used for?

A

To avoid problems inherent to M:N relationships

It serves as a solution to facilitate the implementation of M:N relationships.

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

What is the role of foreign keys in data redundancy control?

A

Control data redundancies by using common attributes shared by tables

Foreign keys help maintain relationships and integrity between tables.

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

True or False: Data redundancy is always detrimental to a database.

A

False

Sometimes, data redundancy is necessary for certain database operations.

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

What must each table row have in a relational database?

A

A primary key which uniquely identifies all attributes

This ensures that each record is distinct and retrievable.

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

Fill in the blank: Tables can be linked by common attributes, thus the primary key of one table can appear as the _______ in another table.

A

foreign key

This establishes a relationship between the two tables.

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

What are the three types of relationships that can be represented using ERDs?

A

1:1, 1:M, M:N

Entity-Relationship Diagrams (ERDs) visually depict these relationships.

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

What is a crucial step in good database design?

A

Identifying appropriate entities and attributes and the relationships among the entities

Proper identification is key to effective database structure.

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