Lecture 5 Flashcards
(13 cards)
What are the three types of relationships within the relational model?
1:1, 1:M, M:N
These relationships define how entities interact within a relational database.
Which relationship is considered the norm in any relational database design?
1:M
The 1:M (one-to-many) relationship is the most common type of relationship in relational databases.
Which relationship should be rare in any relational database design?
1:1
A 1:1 (one-to-one) relationship indicates a very specific connection between two entities.
How can M:N relationships be implemented in a relational model?
By changing them into two 1:M relationships
This conversion helps to avoid the complications associated with M:N relationships.
What does a 1:M relationship signify?
One entity can be related to multiple instances of another entity
It is a foundational concept in relational database design.
What could a 1:1 relationship imply about entity components?
Entity components were not defined properly
This might suggest that the two entities should actually be in the same table.
What is a composite entity or bridge entity used for?
To avoid problems inherent to M:N relationships
It serves as a solution to facilitate the implementation of M:N relationships.
What is the role of foreign keys in data redundancy control?
Control data redundancies by using common attributes shared by tables
Foreign keys help maintain relationships and integrity between tables.
True or False: Data redundancy is always detrimental to a database.
False
Sometimes, data redundancy is necessary for certain database operations.
What must each table row have in a relational database?
A primary key which uniquely identifies all attributes
This ensures that each record is distinct and retrievable.
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.
foreign key
This establishes a relationship between the two tables.
What are the three types of relationships that can be represented using ERDs?
1:1, 1:M, M:N
Entity-Relationship Diagrams (ERDs) visually depict these relationships.
What is a crucial step in good database design?
Identifying appropriate entities and attributes and the relationships among the entities
Proper identification is key to effective database structure.